Skip to content

workqueue: Make the PWQ allocation and WQ enlistment atomic

Lai Jiangshan lkml oe-lkp 2 versions – Applied

Status from this message: Applied to wq/for-6.11.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesApplied
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

Init rescuer's affinities as the wq's effective cpumask

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5workqueue: Register sysfs after the whole creation of the new wqkernel/workqueue.c+3 -30 replies
2/5workqueue: Make rescuer initialization as the last step of the creation of a new wqkernel/workqueue.c+3 -30 replies
3/5workqueue: Move kthread_flush_worker() out of alloc_and_link_pwqs()kernel/workqueue.c+8 -70 replies
4/5workqueue: Put PWQ allocation and WQ enlistment in the same lock C.S.kernel/workqueue.c+28 -262 replies
5/5workqueue: Init rescuer's affinities as the wq's effective cpumaskkernel/workqueue.c+8 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/5] workqueue: Make the PWQ allocation and WQ enlistment atomic

From: Lai Jiangshan <[email protected]>

The PWQ allocation and WQ enlistment are not within the same lock-held critical section; therefore, their states can become out of sync when the user modifies the unbound mask or if CPU hotplug events occur in the interim since those operations only update the WQs that are already in the list.

Change from v1:
Init rescuer's affinities as the wq's effective cpumask

Cc Tejun Heo <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Waiman Long <[email protected]>

V1: https://lore.kernel.org/lkml/[email protected]/

Lai Jiangshan (5):
workqueue: Register sysfs after the whole creation of the new wq
workqueue: Make rescuer initialization as the last step of the
creation of a new wq
workqueue: Move kthread_flush_worker() out of alloc_and_link_pwqs()
workqueue: Put PWQ allocation and WQ enlistment in the same lock C.S.
workqueue: Init rescuer's affinities as the wq's effective cpumask

 kernel/workqueue.c | 87 +++++++++++++++++++++++++---------------------
 1 file changed, 47 insertions(+), 40 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b