Commit a071b04
workqueue: Remove useless pool->dying_workers
A dying worker is first moved from pool->workers to pool->dying_workers
in set_worker_dying() and removed from pool->dying_workers in
detach_dying_workers(). The whole procedure is in the some lock context
of wq_pool_attach_mutex.
So pool->dying_workers is useless, just remove it and keep the dying
worker in pool->workers after set_worker_dying() and remove it in
detach_dying_workers() with wq_pool_attach_mutex held.
Cc: Valentin Schneider <vschneid@redhat.com>
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent f4b7b53 commit a071b04
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
2862 | 2861 | | |
2863 | 2862 | | |
2864 | 2863 | | |
2865 | | - | |
2866 | 2864 | | |
2867 | 2865 | | |
2868 | 2866 | | |
| |||
4721 | 4719 | | |
4722 | 4720 | | |
4723 | 4721 | | |
4724 | | - | |
4725 | 4722 | | |
4726 | 4723 | | |
4727 | 4724 | | |
| |||
0 commit comments