projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.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
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index
40f4017
..
d2ac6cb
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();
{
struct worker *worker = current_wq_worker();
- return worker && worker
== worker->current_pwq->wq->rescuer
;
+ return worker && worker
->rescue_wq
;
}
/**
}
/**