mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] workqueue: Cleanup affnity for detached/DISASSOCIATED workers
@ 2025-11-17  3:09 Lai Jiangshan
  2025-11-17  3:09 ` [PATCH 1/3] workqueue: Update the rescuer's affinity only when it is detached Lai Jiangshan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lai Jiangshan @ 2025-11-17  3:09 UTC (permalink / raw)
  To: linux-kernel
  Cc: Lai Jiangshan, Juri Lelli, Waiman Long, Tejun Heo, Lai Jiangshan

From: Lai Jiangshan <jiangshan.ljs@antgroup.com>

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@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Tejun Heo <tj@kernel.org>,
Cc: Lai Jiangshan <jiangshanlai@gmail.com>

 kernel/workqueue.c | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

-- 
2.19.1.6.gb485710b


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-20 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-17  3:09 [PATCH 0/3] workqueue: Cleanup affnity for detached/DISASSOCIATED workers Lai Jiangshan
2025-11-17  3:09 ` [PATCH 1/3] workqueue: Update the rescuer's affinity only when it is detached Lai Jiangshan
2025-11-17  3:09 ` [PATCH 2/3] workqueue: Let DISASSOCIATED workers follow unbound wq cpumask changes Lai Jiangshan
2025-11-17  3:09 ` [PATCH 3/3] workqueue: Init rescuer's affinities as wq_unbound_cpumask Lai Jiangshan
2025-11-20 20:32 ` [PATCH 0/3] workqueue: Cleanup affnity for detached/DISASSOCIATED workers Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®