summaryrefslogtreecommitdiff
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-08-25 00:51:50 +0300
committerJens Axboe <axboe@fb.com>2016-08-29 17:13:21 +0300
commitf72b8792d180948b4b3898374998f5ac8c02e539 (patch)
tree10bef21fb5a6877202dc13d190493f05be52c416 /include/linux/workqueue.h
parent3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff)
downloadlinux-f72b8792d180948b4b3898374998f5ac8c02e539.tar.xz
workqueue: add cancel_work()
Like cancel_delayed_work(), but for regular work. Signed-off-by: Jens Axboe <axboe@fb.com> Mehed-by: Tejun Heo <tj@kernel.org> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r--include/linux/workqueue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 26cc1df280d6..fc6e22186405 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -442,6 +442,7 @@ extern int schedule_on_each_cpu(work_func_t func);
int execute_in_process_context(work_func_t fn, struct execute_work *);
extern bool flush_work(struct work_struct *work);
+extern bool cancel_work(struct work_struct *work);
extern bool cancel_work_sync(struct work_struct *work);
extern bool flush_delayed_work(struct delayed_work *dwork);