workqueue: Make the PWQ allocation and WQ enlistment atomic
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
- v2 Latest5 patches 3 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | workqueue: Register sysfs after the whole creation of the new wqkernel/ | +3 | 0 replies | |
| 2/5 | workqueue: Make rescuer initialization as the last step of the creation of a new wqkernel/ | +3 | 0 replies | |
| 3/5 | workqueue: Move kthread_flush_worker() out of alloc_and_link_pwqs()kernel/ | +8 | 0 replies | |
| 4/5 | workqueue: Put PWQ allocation and WQ enlistment in the same lock C.S.kernel/ | +28 | 2 replies | |
| 5/5 | workqueue: Init rescuer's affinities as the wq's effective cpumaskkernel/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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
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