workqueue: implement flush[_delayed]_work_sync()
commit09383498c5d35262e643bfdbae84826177a3c624
authorTejun Heo <tj@kernel.org>
Thu, 16 Sep 2010 08:48:29 +0000 (16 10:48 +0200)
committerTejun Heo <tj@kernel.org>
Sun, 19 Sep 2010 15:51:05 +0000 (19 17:51 +0200)
treeec75ee767bff28cabbd1d1b82cfc3457147dda33
parentbaf59022c37d43f202e62d5130e4bac5e825b426
workqueue: implement flush[_delayed]_work_sync()

Implement flush[_delayed]_work_sync().  These are flush functions
which also make sure no CPU is still executing the target work from
earlier queueing instances.  These are similar to
cancel[_delayed]_work_sync() except that the target work item is
flushed instead of cancelled.

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