Re: [PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page

2012-12-02 Thread Bob Liu
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > pmd value is stable only with mm->page_table_lock taken. After taking > the lock we need to check that nobody modified the pmd before change it. > > Signed-off-by: Kirill A. Shutemov Reviewed-by: Bob

Re: [PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page

2012-12-02 Thread Bob Liu
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com pmd value is stable only with mm-page_table_lock taken. After taking the lock we need to check that nobody modified the pmd before change it.

[PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page

2012-11-30 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" pmd value is stable only with mm->page_table_lock taken. After taking the lock we need to check that nobody modified the pmd before change it. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 29 - 1 file changed, 24

[PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page

2012-11-30 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com pmd value is stable only with mm-page_table_lock taken. After taking the lock we need to check that nobody modified the pmd before change it. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 29