aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-08-03 10:30:46 -0700
committerTejun Heo <tj@kernel.org>2012-08-03 10:30:46 -0700
commit36e227d242f9ec7cb4a8e968561b3b26e3d8b5d1 (patch)
treea35f1711123a22e90e6c06217cead66933404a3d /include/linux/workqueue.h
parentworkqueue: factor out __queue_delayed_work() from queue_delayed_work_on() (diff)
downloadwireguard-linux-36e227d242f9ec7cb4a8e968561b3b26e3d8b5d1.tar.xz
wireguard-linux-36e227d242f9ec7cb4a8e968561b3b26e3d8b5d1.zip
workqueue: reorganize try_to_grab_pending() and __cancel_timer_work()
* Use bool @is_dwork instead of @timer and let try_to_grab_pending() use to_delayed_work() to determine the delayed_work address. * Move timer handling from __cancel_work_timer() to try_to_grab_pending(). * Make try_to_grab_pending() use -EAGAIN instead of -1 for busy-looping and drop the ret local variable. * Add proper function comment to try_to_grab_pending(). This makes the code a bit easier to understand and will ease further changes. This patch doesn't make any functional change. v2: Use @is_dwork instead of @timer. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions