[PATCH 0/3] workqueue: Cleanup affnity for detached/DISASSOCIATED workers
From: Lai Jiangshan
Date: Sun Nov 16 2025 - 22:10:48 EST
From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>
The commit d64f2fa064f8 ("kernel/workqueue: Let rescuers follow unbound
wq cpumask changes") updates the affinity for unbound wq's rescuer.
Do extra cleanup to make it more consistent:
consistency with the workers:
* Not for attached rescuers which are managed by pool's affinity
* Also for PERCPU wq's detached rescuers
* Also for DISASSOCIATED pools' workers
* Also for newly created rescuers (starting from without attached)
consistency with the affinity:
* use wq_unbound_cpumask in all the cases.
Lai Jiangshan (3):
workqueue: Update the rescuer's affinity only when it is detached
workqueue: Let DISASSOCIATED workers follow unbound wq cpumask changes
workqueue: Init rescuer's affinities as wq_unbound_cpumask
Cc: Juri Lelli <juri.lelli@xxxxxxxxxx>
Cc: Waiman Long <longman@xxxxxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>,
Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>
kernel/workqueue.c | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
--
2.19.1.6.gb485710b