Commit 8416588
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: fe28f63("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>1 parent 98f887f commit 8416588
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6848 | 6848 | | |
6849 | 6849 | | |
6850 | 6850 | | |
6851 | | - | |
6852 | | - | |
6853 | | - | |
6854 | 6851 | | |
6855 | 6852 | | |
6856 | 6853 | | |
| |||
6862 | 6859 | | |
6863 | 6860 | | |
6864 | 6861 | | |
| 6862 | + | |
| 6863 | + | |
| 6864 | + | |
| 6865 | + | |
6865 | 6866 | | |
6866 | 6867 | | |
6867 | 6868 | | |
| |||
7197 | 7198 | | |
7198 | 7199 | | |
7199 | 7200 | | |
7200 | | - | |
7201 | 7201 | | |
7202 | 7202 | | |
7203 | 7203 | | |
| |||
7206 | 7206 | | |
7207 | 7207 | | |
7208 | 7208 | | |
| 7209 | + | |
| 7210 | + | |
7209 | 7211 | | |
7210 | 7212 | | |
7211 | 7213 | | |
| |||
0 commit comments