mm: numa: defer TLB flush for THP migration as long as possible
authorMel Gorman <mgorman@suse.de>
Tue, 7 Jan 2014 14:00:48 +0000 (14:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:14 +0000 (12:25 -0800)
commit9c612a77032a98b264d12fd6e3df2ca530d968d2
tree55ba8916952d8657005f4ddf988b01ec2c21e0b2
parent186fa6eb6131954d17457f37283e654cb079c25b
mm: numa: defer TLB flush for THP migration as long as possible

commit b0943d61b8fa420180f92f64ef67662b4f6cc493 upstream.

THP migration can fail for a variety of reasons.  Avoid flushing the TLB
to deal with THP migration races until the copy is ready to start.

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>
mm/huge_memory.c
mm/migrate.c