aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMel Gorman <[email protected]>2012-10-08 16:32:36 -0700
committerLinus Torvalds <[email protected]>2012-10-09 16:22:49 +0900
commitf40d1e42bb988d2a26e8e111ea4c4c7bac819b7e (patch)
tree71c930024b943dfd5dee0b5bd912f73747e4478e /include/linux
parent2a1402aa044b55c2d30ab0ed9405693ef06fb07c (diff)
mm: compaction: acquire the zone->lock as late as possible
Compaction's free scanner acquires the zone->lock when checking for PageBuddy pages and isolating them. It does this even if there are no PageBuddy pages in the range. This patch defers acquiring the zone lock for as long as possible. In the event there are no free pages in the pageblock then the lock will not be acquired at all which reduces contention on zone->lock. Signed-off-by: Mel Gorman <[email protected]> Acked-by: Rik van Riel <[email protected]> Cc: Richard Davies <[email protected]> Cc: Shaohua Li <[email protected]> Cc: Avi Kivity <[email protected]> Acked-by: Rafael Aquini <[email protected]> Acked-by: Minchan Kim <[email protected]> Tested-by: Peter Ujfalusi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions