Skip to content

Add wq_online_cpumask and remove cpus_read_lock() from apply_wqattrs_lock()

Lai Jiangshan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7workqueue: Add wq_online_cpumaskkernel/workqueue.c+10 -00 replies
2/7workqueue: Simplify wq_calc_pod_cpumask() with wq_online_cpumaskkernel/workqueue.c+3 -90 replies
3/7workqueue: Remove cpus_read_lock() from apply_wqattrs_lock()kernel/workqueue.c+0 -34 replies
4/7workqueue: Remove the unneeded cpumask empty check in wq_calc_pod_cpumask()kernel/workqueue.c+0 -40 replies
5/7workqueue: Remove the argument @cpu_going_down from wq_calc_pod_cpumask()kernel/workqueue.c+4 -80 replies
6/7workqueue: Remove the arguments @hotplug_cpu and @online from wq_update_pod()kernel/workqueue.c+5 -80 replies
7/7workqueue: Rename wq_update_pod() to unbound_wq_update_pwq()kernel/workqueue.c+15 -170 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchTejun Heo
1/7
2/7
3/7A-b
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Add wq_online_cpumask and remove cpus_read_lock() from apply_wqattrs_lock()

From: Lai Jiangshan <[email protected]>

The new wq_online_mask mirrors the cpu_online_mask except during hotplugging; specifically, it differs between the hotplugging stages of workqueue_offline_cpu() and workqueue_online_cpu(), during which the transitioning CPU is not represented in the mask.

With wq_online_cpumask, cpus_read_lock() is unneeded for wqattrs changes.

Lai Jiangshan (7):
workqueue: Add wq_online_cpumask
workqueue: Simplify wq_calc_pod_cpumask() with wq_online_cpumask
workqueue: Remove cpus_read_lock() from apply_wqattrs_lock()
workqueue: Remove the unneeded cpumask empty check in
wq_calc_pod_cpumask()
workqueue: Remove the argument @cpu_going_down from
wq_calc_pod_cpumask()
workqueue: Remove the arguments @hotplug_cpu and @online from

    wq_update_pod()

workqueue: Rename wq_update_pod() to unbound_wq_update_pwq()

Cc Tejun Heo <[email protected]>
 kernel/workqueue.c | 76 +++++++++++++++++++---------------------------
 1 file changed, 32 insertions(+), 44 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b