Commit 1dd49bfa authored by Mel Gorman's avatar Mel Gorman Committed by Ingo Molnar

mm: numa: Do not account for a hinting fault if we raced

If another task handled a hinting fault in parallel then do not double
account for it.
Signed-off-by: default avatarMel Gorman <>
Reviewed-by: default avatarRik van Riel <>
Cc: Andrea Arcangeli <>
Cc: Johannes Weiner <>
Cc: Srikar Dronamraju <>
Cc: <>
Signed-off-by: default avatarPeter Zijlstra <>
Link: default avatarIngo Molnar <>
parent 959f5854
......@@ -1325,8 +1325,11 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
if (unlikely(!pmd_same(pmd, *pmdp)))
if (unlikely(!pmd_same(pmd, *pmdp))) {
/* Someone else took our fault */
current_nid = -1;
goto out_unlock;
pmd = pmd_mknonnuma(pmd);
set_pmd_at(mm, haddr, pmdp, pmd);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment