]> 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)
commit6613e3c54f9e5fe6e54abcd8fe7e6d56c37ac60b
treea7f9cc6ab09cbdbce981b974c8ec238f6c3e1524
parent7c91ad93a6ee0f83c9f2660444218cfd1a025097
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