workqueue: cleanup flush/cancel functions
authorTejun Heo <tj@kernel.org>
Thu, 16 Sep 2010 08:36:00 +0000 (10:36 +0200)
committerTejun Heo <tj@kernel.org>
Sun, 19 Sep 2010 15:51:05 +0000 (17:51 +0200)
commit401a8d048eadfbe1b1c1bf53d3b614fcc894c61a
tree7e1761149643e395a33619deb67ec99d8949a7a4
parent81dcaf6516d8bbd75b894862c8ae7bba04380cfe
workqueue: cleanup flush/cancel functions

Make the following cleanup changes.

* Relocate flush/cancel function prototypes and definitions.

* Relocate wait_on_cpu_work() and wait_on_work() before
  try_to_grab_pending().  These will be used to implement
  flush_work_sync().

* Make all flush/cancel functions return bool instead of int.

* Update wait_on_cpu_work() and wait_on_work() to return %true if they
  actually waited.

* Add / update comments.

This patch doesn't cause any functional changes.

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