Skip to content

workqueue: Factor the way to assign rescuer work

Lai Jiangshan lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v44 patches 4 repliesSuperseded
  3. v37 patches 9 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3workqueue: Make send_mayday() take a PWQ argument directlykernel/workqueue.c+3 -100 replies
2/3workqueue: Process rescuer work items one-by-one using a cursorkernel/workqueue.c+59 -160 replies
3/3workqueue: Process extra works in rescuer on memory pressurekernel/workqueue.c+29 -20 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH V5 0/3] workqueue: Factor the way to assign rescuer work

From: Lai Jiangshan <[email protected]>

Previously, the rescuer scanned for all matching work items at once and processed them within a single rescuer thread, which could cause one blocking work item to stall all others.

Make the rescuer process work items one-by-one instead of slurping all matches in a single pass using a cursor.

Changed from V4:

Control the limit and call send_mayday() in rescuer_thread(), which makes rescuer_thread() responsible for ensuring the cursor is not left behind.

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

Lai Jiangshan (3):
workqueue: Refactor send_mayday() to take pwq directly
workqueue: Process rescuer work items one-by-one using a cursor
workqueue: Process extra works in rescuer on memory pressure

 kernel/workqueue.c | 119 ++++++++++++++++++++++++++++++++++-----------
 1 file changed, 91 insertions(+), 28 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b