workqueue: implement current_is_workqueue_rescuer()
authorTejun Heo <tj@kernel.org>
Wed, 13 Mar 2013 00:41:37 +0000 (17:41 -0700)
committerTejun Heo <tj@kernel.org>
Wed, 13 Mar 2013 00:42:01 +0000 (17:42 -0700)
commite62676169118bc2d42e5008b3f8872646313f077
tree98ce7e6b03a8a18fa322de7997248a8e0b7b2f84
parent226223ab3c4118ddd10688cc2c131135848371ab
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>
include/linux/workqueue.h
kernel/workqueue.c