Skip to content

Commit 77d1a43

Browse files
Chas Williamsgregkh
authored andcommitted
Fixes: Commit 2aa6d03 ("mm: numa: avoid waiting on freed migrated pages")
Commit 2aa6d03 ("mm: numa: avoid waiting on freed migrated pages") was an incomplete backport of the upstream commit. It is necessary to always reset page_nid before attempting any early exit. The original commit conflicted due to lack of commit 82b0f8c ("mm: join struct fault_env and vm_fault") in 4.9 so it wasn't a clean application, and the change must have just gotten lost in the noise. Signed-off-by: Chas Williams <chas3@att.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4438e9d commit 77d1a43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/huge_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,12 +1259,12 @@ int do_huge_pmd_numa_page(struct fault_env *fe, pmd_t pmd)
12591259

12601260
/* Migration could have started since the pmd_trans_migrating check */
12611261
if (!page_locked) {
1262+
page_nid = -1;
12621263
if (!get_page_unless_zero(page))
12631264
goto out_unlock;
12641265
spin_unlock(fe->ptl);
12651266
wait_on_page_locked(page);
12661267
put_page(page);
1267-
page_nid = -1;
12681268
goto out;
12691269
}
12701270

0 commit comments

Comments
 (0)