diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-12 17:41:37 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 17:42:01 -0700 |
commit | e62676169118bc2d42e5008b3f8872646313f077 (patch) | |
tree | 98ce7e6b03a8a18fa322de7997248a8e0b7b2f84 /include/linux/workqueue.h | |
parent | 226223ab3c4118ddd10688cc2c131135848371ab (diff) | |
download | blackbird-op-linux-e62676169118bc2d42e5008b3f8872646313f077.tar.gz blackbird-op-linux-e62676169118bc2d42e5008b3f8872646313f077.zip |
workqueue: implement current_is_workqueue_rescuer()
Implement a function which queries whether it currently is running off
a workqueue rescuer. This will be used to convert writeback to
workqueue.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 7f6d29a417c0..df30763c8682 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -451,6 +451,7 @@ extern bool cancel_delayed_work_sync(struct delayed_work *dwork); extern void workqueue_set_max_active(struct workqueue_struct *wq, int max_active); +extern bool current_is_workqueue_rescuer(void); extern bool workqueue_congested(int cpu, struct workqueue_struct *wq); extern unsigned int work_busy(struct work_struct *work); |