Skip to content

workqueue: cleanups for schedule callbacks part2

Lai Jiangshan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4workqueue: Remove the mb() pair between wq_worker_sleeping() and insert_work()kernel/workqueue.c+0 -110 replies
2/4workqueue: Change the comments of the synchronization about the idle_listkernel/workqueue.c+2 -90 replies
3/4workqueue: Use wake_up_worker() in wq_worker_sleeping() instead of open codekernel/workqueue.c+3 -60 replies
4/4workqueue: Convert the type of pool->nr_running to intkernel/workqueue.c+16 -130 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] workqueue: cleanups for schedule callbacks part2

From: Lai Jiangshan <[email protected]>

The commit 6d25be5782e4 ("sched/core, workqueues: Distangle worker accounting from rq lock") changed the schedule callbacks for workqueue.

It simplified the connection between scheduler and workqueue. But it caused some code useless and some comments outdated in workqueue which needs to be cleaned up.

Patch1-3 are the cleanups based on the fact that 6d25be5782e4 changed to use pool lock in wq_worker_sleeping().

Patch4 is based on the fact that schedule callbacks were changed to be only called from schedule() which means all modification to nr_running is on local CPU when the worker is concurrent managed.

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

Most patches of part1 are queued.

Lai Jiangshan (4):
workqueue: Remove the mb() pair between wq_worker_sleeping() and
insert_work()
workqueue: Change the comments of the synchronization about the
idle_list
workqueue: Use wake_up_worker() in wq_worker_sleeping() instead of
open code
workqueue: Convert the type of pool->nr_running to int

 kernel/workqueue.c | 58 ++++++++++++++++------------------------------
 1 file changed, 20 insertions(+), 38 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b