]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d14937c162da3d310b130f6529006d1df359456
treea7f9cc6ab09cbdbce981b974c8ec238f6c3e1524
parentd3068d1db5c0c6f835c8ff81ded34df8183b663c
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