projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ee4fc
)
workqueue: simplify current_is_workqueue_rescuer()
author
Lai Jiangshan
<laijs@cn.fujitsu.com>
Tue, 19 Mar 2013 19:28:03 +0000
(
03:28
+0800)
committer
Tejun Heo
<tj@kernel.org>
Wed, 20 Mar 2013 17:40:25 +0000
(10:40 -0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index 40f4017285a0a3dad5abeb14537dad1cd98d5d45..d2ac6cbfe8abb6a6a20668d29fddf9f38102b22f 100644
(file)
--- 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
;
}
/**