]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
workqueue: Let DISASSOCIATED workers follow unbound wq cpumask changes
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Mon, 17 Nov 2025 03:09:12 +0000 (11:09 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 20 Nov 2025 20:27:55 +0000 (10:27 -1000)
commit8ac4dbe7dd05f44121da120e480239dc89c3b496
tree251d226e1c2ec9b71c7b0cbcda729ee874a593ad
parente36bce4466d7807a40720abd277803fcad823c08
workqueue: Let DISASSOCIATED workers follow unbound wq cpumask changes

When workqueue cpumask changes are committed, the DISASSOCIATED workers
affinity is not touched and this might be a problem down the line for
isolated setups when the DISASSOCIATED pools still have works to run
after the cpu is offline.

Make sure the workers' affinity is updated every time a workqueue cpumask
changes, so these workers can't break isolation.

Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c