[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251117030913.3084-1-jiangshanlai@gmail.com>
Date: Mon, 17 Nov 2025 11:09:10 +0800
From: Lai Jiangshan <jiangshanlai@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Lai Jiangshan <jiangshan.ljs@...group.com>,
Juri Lelli <juri.lelli@...hat.com>,
Waiman Long <longman@...hat.com>,
Tejun Heo <tj@...nel.org>,
Lai Jiangshan <jiangshanlai@...il.com>
Subject: [PATCH 0/3] workqueue: Cleanup affnity for detached/DISASSOCIATED workers
From: Lai Jiangshan <jiangshan.ljs@...group.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@...hat.com>
Cc: Waiman Long <longman@...hat.com>
Cc: Tejun Heo <tj@...nel.org>,
Cc: Lai Jiangshan <jiangshanlai@...il.com>
kernel/workqueue.c | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
--
2.19.1.6.gb485710b
Powered by blists - more mailing lists