Commit fbb3d4c
workqueue: Simplify wq_calc_pod_cpumask() with wq_online_cpumask
Avoid relying on cpu_online_mask for wqattrs changes so that
cpus_read_lock() can be removed from apply_wqattrs_lock().
And with wq_online_cpumask, attrs->__pod_cpumask doesn't need to be
reused as a temporary storage to calculate if the pod have any online
CPUs @attrs wants since @cpu_going_down is not in the wq_online_cpumask.
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent 8d84baf commit fbb3d4c
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5146 | 5146 | | |
5147 | 5147 | | |
5148 | 5148 | | |
5149 | | - | |
| 5149 | + | |
5150 | 5150 | | |
5151 | | - | |
5152 | | - | |
5153 | | - | |
5154 | | - | |
5155 | | - | |
| 5151 | + | |
| 5152 | + | |
5156 | 5153 | | |
5157 | 5154 | | |
5158 | 5155 | | |
5159 | 5156 | | |
5160 | | - | |
5161 | | - | |
5162 | | - | |
5163 | 5157 | | |
5164 | 5158 | | |
5165 | 5159 | | |
| |||
0 commit comments