]> 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>
Wed, 3 Oct 2012 06:49:32 +0000 (16:49 +1000)
commite6a83a97feac333ff06c98159a13ef25e8302167
tree35d4b93dccf3b465481fec176221d07b74e069d4
parent90a140f87eab2f3f245ac34a99a83ad54b2af5ea
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