Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > "Kirill A. Shutemov" writes: > >>> @@ -184,3 +185,13 @@ void pmdp_invalidate(struct vm_area_struct *vma, >>> unsigned long address, >>> } >>> #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ >>> #endif >>> + >>> +#ifndef __HAVE_ARCH_PMDP_SPLITTING_FLUSH_NOTIFY >>>

Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
"Kirill A. Shutemov" writes: >> @@ -184,3 +185,13 @@ void pmdp_invalidate(struct vm_area_struct *vma, >> unsigned long address, >> } >> #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ >> #endif >> + >> +#ifndef __HAVE_ARCH_PMDP_SPLITTING_FLUSH_NOTIFY >> +#ifdef CONFIG_TRANSPARENT_HUGEPAGE >> +void

Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Kirill A. Shutemov
On Thu, Apr 30, 2015 at 01:55:39PM +0530, Aneesh Kumar K.V wrote: > Some arch may require an explicit IPI before a THP PMD split. This > ensures that a local_irq_disable can prevent a parallel THP PMD split. > So use new function which arch can override > > Signed-off-by: Aneesh Kumar K.V > ---

[RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
Some arch may require an explicit IPI before a THP PMD split. This ensures that a local_irq_disable can prevent a parallel THP PMD split. So use new function which arch can override Signed-off-by: Aneesh Kumar K.V --- include/asm-generic/pgtable.h | 5 + mm/huge_memory.c | 7

[RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
Some arch may require an explicit IPI before a THP PMD split. This ensures that a local_irq_disable can prevent a parallel THP PMD split. So use new function which arch can override Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- include/asm-generic/pgtable.h | 5 +

Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Kirill A. Shutemov
On Thu, Apr 30, 2015 at 01:55:39PM +0530, Aneesh Kumar K.V wrote: Some arch may require an explicit IPI before a THP PMD split. This ensures that a local_irq_disable can prevent a parallel THP PMD split. So use new function which arch can override Signed-off-by: Aneesh Kumar K.V

Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: Kirill A. Shutemov kir...@shutemov.name writes: @@ -184,3 +185,13 @@ void pmdp_invalidate(struct vm_area_struct *vma, unsigned long address, } #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #endif + +#ifndef

Re: [RFC PATCH 1/3] mm/thp: Use pmdp_splitting_flush_notify to clear pmd on splitting

2015-04-30 Thread Aneesh Kumar K.V
Kirill A. Shutemov kir...@shutemov.name writes: @@ -184,3 +185,13 @@ void pmdp_invalidate(struct vm_area_struct *vma, unsigned long address, } #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #endif + +#ifndef __HAVE_ARCH_PMDP_SPLITTING_FLUSH_NOTIFY +#ifdef CONFIG_TRANSPARENT_HUGEPAGE +void