From: David Rientjes Date: Wed, 4 Jun 2014 23:08:31 +0000 (-0700) Subject: mm, compaction: terminate async compaction when rescheduling X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~135 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeef4b83806f49a0c454b7d4578671b71045bee2;p=pandora-kernel.git mm, compaction: terminate async compaction when rescheduling Async compaction terminates prematurely when need_resched(), see compact_checklock_irqsave(). This can never trigger, however, if the cond_resched() in isolate_migratepages_range() always takes care of the scheduling. If the cond_resched() actually triggers, then terminate this pageblock scan for async compaction as well. Signed-off-by: David Rientjes Acked-by: Mel Gorman Acked-by: Vlastimil Babka Cc: Mel Gorman Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed