]> Git Repo - linux.git/commit
vmscan: abort reclaim/compaction if compaction can proceed
authorMel Gorman <[email protected]>
Tue, 1 Nov 2011 00:09:33 +0000 (17:09 -0700)
committerLinus Torvalds <[email protected]>
Tue, 1 Nov 2011 00:30:50 +0000 (17:30 -0700)
commite0c23279c9f800c403f37511484d9014ac83adec
tree9dcf058d3d1c691328ea5839dfe9c340e47ee3fa
parente0887c19b2daa140f20ca8104bdc5740f39dbb86
vmscan: abort reclaim/compaction if compaction can proceed

If compaction can proceed, shrink_zones() stops doing any work but its
callers still call shrink_slab() which raises the priority and potentially
sleeps.  This is unnecessary and wasteful so this patch aborts direct
reclaim/compaction entirely if compaction can proceed.

Signed-off-by: Mel Gorman <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Josh Boyer <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c
This page took 0.053418 seconds and 4 git commands to generate.