summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2013-03-20 03:28:03 +0800
committerTejun Heo <tj@kernel.org>2013-03-20 10:40:25 -0700
commit6a092dfd51e5af9b321d683d4b4eddc79e2606ed (patch)
tree1881329dcaa0a35bd2fa6906824d55ebb57f4c74 /kernel/workqueue.c
parent12ee4fc67c00895b3d740297f7ca447239c1983b (diff)
downloadop-kernel-dev-6a092dfd51e5af9b321d683d4b4eddc79e2606ed.zip
op-kernel-dev-6a092dfd51e5af9b321d683d4b4eddc79e2606ed.tar.gz
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>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 40f4017..d2ac6cb 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3936,7 +3936,7 @@ bool current_is_workqueue_rescuer(void)
{
struct worker *worker = current_wq_worker();
- return worker && worker == worker->current_pwq->wq->rescuer;
+ return worker && worker->rescue_wq;
}
/**
OpenPOWER on IntegriCloud