From: Tejun Heo Date: Tue, 19 Oct 2010 09:08:41 +0000 (+0200) Subject: memory_hotplug: drop spurious calls to flush_scheduled_work() X-Git-Tag: v3.0~3069^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10ccd84695c2a03075bad2f4fc728575fe9051f8;p=platform%2Fkernel%2Flinux-amlogic.git memory_hotplug: drop spurious calls to flush_scheduled_work() lru_add_drain_all() uses schedule_on_each_cpu() which is synchronous. There is no reason to call flush_scheduled_work() after lru_add_drain_all(). Drop the spurious calls. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Acked-by: KAMEZAWA Hiroyuki Reviewed-by: Minchan Kim Acked-by: Mel Gorman --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index dd186c1..d4e940a 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -840,7 +840,6 @@ repeat: ret = 0; if (drain) { lru_add_drain_all(); - flush_scheduled_work(); cond_resched(); drain_all_pages(); } @@ -862,7 +861,6 @@ repeat: } /* drain all zone's lru pagevec, this is asyncronous... */ lru_add_drain_all(); - flush_scheduled_work(); yield(); /* drain pcp pages , this is synchrouns. */ drain_all_pages();