]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: compaction: cache if a pageblock was scanned and no pages were isolated -fix2
authorMel Gorman <mgorman@suse.de>
Fri, 28 Sep 2012 00:19:48 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 03:00:13 +0000 (14:00 +1100)
commitb3f446f83d55eb62c9dbf965b841024c99050937
tree0911fda39ac918e5b88cce6715d6b47b960a77aa
parent6f059f7ffaa5d5c04d763f45b0c15a81cb4cd9eb
mm: compaction: cache if a pageblock was scanned and no pages were isolated -fix2

The clearing of PG_migrate_skip potentially takes a long time if the
zone is massive. Be safe and check if it needs to reschedule.

This is a fix for
mm-compaction-cache-if-a-pageblock-was-scanned-and-no-pages-were-isolated.patch

Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c