mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 d10e63f294 ("mm: numa: Create basic numa page
hinting infrastructure"). Put it back.
Reported-by: Dave Jones <[email protected]>
Debugged-by: Hillf Danton <[email protected]>
Acked-by: Andrea Arcangeli <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Kirill Shutemov <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
08c097fc3b
commit
e53289c0c5
1 changed files with 8 additions and 0 deletions
|
|
@ -3711,6 +3711,14 @@ retry:
|
|||
if (pmd_trans_huge(orig_pmd)) {
|
||||
unsigned int dirty = flags & FAULT_FLAG_WRITE;
|
||||
|
||||
/*
|
||||
* If the pmd is splitting, return and retry the
|
||||
* the fault. Alternative: wait until the split
|
||||
* is done, and goto retry.
|
||||
*/
|
||||
if (pmd_trans_splitting(orig_pmd))
|
||||
return 0;
|
||||
|
||||
if (pmd_numa(orig_pmd))
|
||||
return do_huge_pmd_numa_page(mm, vma, address,
|
||||
orig_pmd, pmd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue