Re: [PATCH RESEND -mm 2/2] mm/mempolicy.c: add comment in queue_pages_hugetlb()

2014-03-19 Thread Andrew Morton
On Tue, 18 Mar 2014 22:29:39 -0400 Naoya Horiguchi wrote: > We have a race where we try to migrate an invalid page, resulting in > hitting VM_BUG_ON_PAGE in isolate_huge_page(). > queue_pages_hugetlb() is OK to fail, so let's check !PageHeadHuge to keep > invalid hugepage from queuing. > > .. >

Re: [PATCH RESEND -mm 2/2] mm/mempolicy.c: add comment in queue_pages_hugetlb()

2014-03-19 Thread Sasha Levin
On 03/18/2014 10:29 PM, Naoya Horiguchi wrote: We have a race where we try to migrate an invalid page, resulting in hitting VM_BUG_ON_PAGE in isolate_huge_page(). queue_pages_hugetlb() is OK to fail, so let's check !PageHeadHuge to keep invalid hugepage from queuing. Reported-by: Sasha Levin Si

[PATCH RESEND -mm 2/2] mm/mempolicy.c: add comment in queue_pages_hugetlb()

2014-03-18 Thread Naoya Horiguchi
We have a race where we try to migrate an invalid page, resulting in hitting VM_BUG_ON_PAGE in isolate_huge_page(). queue_pages_hugetlb() is OK to fail, so let's check !PageHeadHuge to keep invalid hugepage from queuing. Reported-by: Sasha Levin Signed-off-by: Naoya Horiguchi --- mm/mempolicy.c