mm: numa: avoid unnecessary disruption of NUMA hinting during migration
authorMel Gorman <mgorman@suse.de>
Tue, 7 Jan 2014 14:00:45 +0000 (14:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:14 +0000 (12:25 -0800)
commitfd5df8002f7668ac04a53b1b6d75296ad191a136
treeb5e1de83ba1d5e14e1f57ddeb79e5da3ec2d6bee
parent3d792d616ba408ab55a54c1bb75a9367d997acfa
mm: numa: avoid unnecessary disruption of NUMA hinting during migration

commit de466bd628e8d663fdf3f791bc8db318ee85c714 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/migrate.h
mm/huge_memory.c
mm/migrate.c