summaryrefslogtreecommitdiff
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-08-24 15:51:50 -0600
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:33 +0200
commit541b9f854f466ae2578a52d1ec1d07eaec2d5d50 (patch)
tree165efe294b124cf2f5d6ffb60dbe306a531b6753 /include/linux/workqueue.h
parent5e5d8b8926a2421f35b12cda8275c73648202e3f (diff)
workqueue: add cancel_work()
Like cancel_delayed_work(), but for regular work. Change-Id: Ic967cb1616245b71a63e1b92f8e28d94a27ae490 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 0703a632e340..58f3d8ed5727 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -443,6 +443,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);