diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/huge_memory.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 0164b09c1e99..7b09fe75799c 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -1335,8 +1335,11 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1335 | 1335 | ||
1336 | check_same: | 1336 | check_same: |
1337 | spin_lock(&mm->page_table_lock); | 1337 | spin_lock(&mm->page_table_lock); |
1338 | if (unlikely(!pmd_same(pmd, *pmdp))) | 1338 | if (unlikely(!pmd_same(pmd, *pmdp))) { |
1339 | /* Someone else took our fault */ | ||
1340 | current_nid = -1; | ||
1339 | goto out_unlock; | 1341 | goto out_unlock; |
1342 | } | ||
1340 | clear_pmdnuma: | 1343 | clear_pmdnuma: |
1341 | pmd = pmd_mknonnuma(pmd); | 1344 | pmd = pmd_mknonnuma(pmd); |
1342 | set_pmd_at(mm, haddr, pmdp, pmd); | 1345 | set_pmd_at(mm, haddr, pmdp, pmd); |