[PATCH 0/4] workqueue: Destroy workers in idle_cull_fn().

From: Lai Jiangshan
Date: Fri Jun 21 2024 - 03:29:51 EST


From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>

After e02b93124855("workqueue: Unbind kworkers before sending them to
exit()"), the code to kick off the destruction of workers is now in a
process context (idle_cull_fn()), more destruction code can also be
moved to the said process context to simplify the destroying.

Cc: Tejun Heo <tj@xxxxxxxxxx>
Cc: Valentin Schneider <vschneid@xxxxxxxxxx>

Lai Jiangshan (4):
workqueue: Reap workers via kthread_stop() and remove
detach_completion
workqueue: Don't bind the rescuer in the last working cpu
workqueue: Detach workers directly in idle_cull_fn()
workqueue: Remove useless pool->dying_workers

kernel/workqueue.c | 87 +++++++++++++++++++++-------------------------
1 file changed, 40 insertions(+), 47 deletions(-)

--
2.19.1.6.gb485710b