workqueue: Skip __WQ_DESTROYING workqueues when updating global unbound cpumask
authorWaiman Long <longman@redhat.com>
Sat, 3 Feb 2024 15:43:30 +0000 (10:43 -0500)
committerTejun Heo <tj@kernel.org>
Mon, 5 Feb 2024 17:52:22 +0000 (07:52 -1000)
commit8eb17dc1a6b5db7e89681f59285242af8d182f95
treeccb2bcb58bbdfe121d2c16ce001d96e4887f46ad
parent96068b6030391082bf0cd97af525d731afa5ad63
workqueue: Skip __WQ_DESTROYING workqueues when updating global unbound cpumask

Skip updating workqueues with __WQ_DESTROYING bit set when updating
global unbound cpumask to avoid unnecessary work and other complications.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c