From: Wanpeng Li Date: Thu, 23 Jan 2014 23:53:21 +0000 (-0800) Subject: sched/numa: fix setting of cpupid on page migration twice X-Git-Tag: v3.14-rc1~108^2~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=baae911b27b8dbee6830f4e3ef0fcf4dc8e9c07b;p=profile%2Fivi%2Fkernel-x86-ivi.git sched/numa: fix setting of cpupid on page migration twice Commit 7851a45cd3f6 ("mm: numa: Copy cpupid on page migration") copiess over the cpupid at page migration time. It is unnecessary to set it again in migrate_misplaced_transhuge_page(). Signed-off-by: Wanpeng Li Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Mel Gorman Cc: Rik van Riel Cc: Naoya Horiguchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/migrate.c b/mm/migrate.c index 4b3996e..734704f 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1753,8 +1753,6 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm, if (!new_page) goto out_fail; - page_cpupid_xchg_last(new_page, page_cpupid_last(page)); - isolated = numamigrate_isolate_page(pgdat, page); if (!isolated) { put_page(new_page);