]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: numa: ensure anon_vma is locked to prevent parallel THP splits
authorMel Gorman <mgorman@suse.de>
Mon, 16 Dec 2013 23:44:44 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:44 +0000 (10:44 +1100)
commit033d54f8b6948ab9921ed60134a061d983d4cc2d
tree60f2309d35de485c67e5ab74f2e952244adf9b27
parentff1ed69ff2ca223d3807eaf3dd03a84cfe16bf82
mm: numa: ensure anon_vma is locked to prevent parallel THP splits

The anon_vma lock prevents parallel THP splits and any associated
complexity that arises when handling splits during THP migration.  This
patch checks if the lock was successfully acquired and bails from THP
migration if it failed for any reason.

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