workqueue: simplify current_is_workqueue_rescuer()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 19 Mar 2013 19:28:03 +0000 (03:28 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 20 Mar 2013 17:40:25 +0000 (10:40 -0700)
commit6a092dfd51e5af9b321d683d4b4eddc79e2606ed
tree1881329dcaa0a35bd2fa6906824d55ebb57f4c74
parent12ee4fc67c00895b3d740297f7ca447239c1983b
workqueue: simplify current_is_workqueue_rescuer()

We can test worker->recue_wq instead of reaching into
current_pwq->wq->rescuer and then comparing it to self.

tj: Commit message.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c