Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: reinstante dropped pmd_trans_splitting() check

The check for a pmd being in the process of being split was dropped by
mistake by commit d10e63f29488 ("mm: numa: Create basic numa page
hinting infrastructure"). Put it back.

Reported-by: Dave Jones <davej@redhat.com>
Debugged-by: Hillf Danton <dhillf@gmail.com>
Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Kirill Shutemov <kirill@shutemov.name>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+8
+8
mm/memory.c
··· 3711 3711 if (pmd_trans_huge(orig_pmd)) { 3712 3712 unsigned int dirty = flags & FAULT_FLAG_WRITE; 3713 3713 3714 + /* 3715 + * If the pmd is splitting, return and retry the 3716 + * the fault. Alternative: wait until the split 3717 + * is done, and goto retry. 3718 + */ 3719 + if (pmd_trans_splitting(orig_pmd)) 3720 + return 0; 3721 + 3714 3722 if (pmd_numa(orig_pmd)) 3715 3723 return do_huge_pmd_numa_page(mm, vma, address, 3716 3724 orig_pmd, pmd);