mm: numa: avoid unnecessary disruption of NUMA hinting during migration
authorMel Gorman <mgorman@suse.de>
Thu, 19 Dec 2013 01:08:42 +0000 (17:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Dec 2013 03:04:51 +0000 (19:04 -0800)
commitde466bd628e8d663fdf3f791bc8db318ee85c714
treea7f9cc6ab09cbdbce981b974c8ec238f6c3e1524
parent1667918b6483b12a6496bf54151b827b8235d7b1
mm: numa: avoid unnecessary disruption of NUMA hinting during migration

do_huge_pmd_numa_page() handles the case where there is parallel THP
migration.  However, by the time it is checked the NUMA hinting
information has already been disrupted.  This patch adds an earlier
check with some helpers.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/migrate.h
mm/huge_memory.c
mm/migrate.c