Commit b4ac938
workqueue: Remove schedule() in unbind_workers()
The commit 6d25be5 ("sched/core, workqueues: Distangle worker
accounting from rq lock") changed the schedule callbacks for workqueue
and moved the schedule callback from the wakeup code to at end of
schedule() in the worker's process context.
It means that the callback wq_worker_running() is guaranteed that
it sees the %WORKER_UNBOUND flag after scheduled since unbind_workers()
is running on the same CPU that all the pool's workers bound to.
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 11b45b0 commit b4ac938
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4979 | 4979 | | |
4980 | 4980 | | |
4981 | 4981 | | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
4982 | 4985 | | |
4983 | 4986 | | |
4984 | 4987 | | |
| |||
4994 | 4997 | | |
4995 | 4998 | | |
4996 | 4999 | | |
4997 | | - | |
4998 | | - | |
4999 | | - | |
5000 | | - | |
5001 | | - | |
5002 | | - | |
5003 | | - | |
5004 | | - | |
5005 | 5000 | | |
5006 | 5001 | | |
5007 | 5002 | | |
| |||
0 commit comments