memory_hotplug: drop spurious calls to flush_scheduled_work()
authorTejun Heo <tj@kernel.org>
Tue, 19 Oct 2010 09:08:41 +0000 (11:08 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 19 Oct 2010 09:08:41 +0000 (11:08 +0200)
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 <tj@kernel.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>

No differences found