workqueue: factor out start_flush_work()
authorTejun Heo <tj@kernel.org>
Thu, 16 Sep 2010 08:42:16 +0000 (10:42 +0200)
committerTejun Heo <tj@kernel.org>
Sun, 19 Sep 2010 15:51:05 +0000 (17:51 +0200)
commitbaf59022c37d43f202e62d5130e4bac5e825b426
tree43eea7aac112b2ee07b195e00bce4b14465d1183
parent401a8d048eadfbe1b1c1bf53d3b614fcc894c61a
workqueue: factor out start_flush_work()

Factor out start_flush_work() from flush_work().  start_flush_work()
has @wait_executing argument which controls whether the barrier is
queued only if the work is pending or also if executing.  As
flush_work() needs to wait for execution too, it uses %true.

This commit doesn't cause any behavior difference.  start_flush_work()
will be used to implement flush_work_sync().

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c