diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2013-03-20 03:28:03 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-20 10:40:25 -0700 |
commit | 6a092dfd51e5af9b321d683d4b4eddc79e2606ed (patch) | |
tree | 1881329dcaa0a35bd2fa6906824d55ebb57f4c74 /kernel/workqueue.c | |
parent | 12ee4fc67c00895b3d740297f7ca447239c1983b (diff) | |
download | linux-6a092dfd51e5af9b321d683d4b4eddc79e2606ed.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 40f4017285a0..d2ac6cbfe8ab 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; } /** |