]> www.infradead.org Git - users/hch/xfs.git/commit
workqueue: Update cpumasks after only applying it successfully
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Tue, 2 Jul 2024 04:14:55 +0000 (12:14 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 2 Jul 2024 17:14:33 +0000 (07:14 -1000)
commit841658832335a32dd86f4e4d3aab7d14188b268b
tree220c1bb4feaaee7b55894d262587e422e89acaee
parent98f887f820c993e05a12e8aa816c80b8661d4c87
workqueue: Update cpumasks after only applying it successfully

Make workqueue_unbound_exclude_cpumask() and workqueue_set_unbound_cpumask()
only update wq_isolated_cpumask and wq_requested_unbound_cpumask when
workqueue_apply_unbound_cpumask() returns successfully.

Fixes: fe28f631fa94("workqueue: Add workqueue_unbound_exclude_cpumask() to exclude CPUs from wq_unbound_cpumask")
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