From: Mel Gorman Date: Mon, 8 Oct 2012 23:29:12 +0000 (-0700) Subject: mm: compaction: capture a suitable high-order page immediately when it is made available X-Git-Tag: v3.7-rc1~74^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb3f8ca0e9222535a39b884cb67a34628411b9f;p=pandora-kernel.git mm: compaction: capture a suitable high-order page immediately when it is made available While compaction is migrating pages to free up large contiguous blocks for allocation it races with other allocation requests that may steal these blocks or break them up. This patch alters direct compaction to capture a suitable free page as soon as it becomes available to reduce this race. It uses similar logic to split_free_page() to ensure that watermarks are still obeyed. Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel Reviewed-by: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed