Skip to content

workqueue lockup debugging

Johannes Berg lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2workqueue: debug flushing deadlocks with lockdepinclude/linux/workqueue.h kernel/workqueue.c+34 -60 replies
1/2workqueue: debug flushing deadlocks with lockdepinclude/linux/workqueue.h kernel/workqueue.c+34 -60 replies
2/2workqueue: debug work related deadlocks with lockdepinclude/linux/lockdep.h include/linux/workqueue.h kernel/workqueue.c+53 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchOleg NesterovIngo MolnarPeter Zijlstra
1/2A-b A-b A-b A-b A-b A-b
1/2A-b A-b A-b A-b A-b A-b
2/2A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH (resend) 0/2] workqueue lockup debugging

I recently experienced a lockup in the wireless code due to the scenario described in patch 1 and wanted to have lockdep warn about such scenarios as a way to catch such bugs in other subsystems as well as to make sure we wouldn't get such things ever again.

In discussions with Oleg and Ingo it turned out that there's another possible deadlock with the now-recommended API of cancel_work_sync() and I also found a way to make lockdep catch that; it is addressed by patch 2.

Ingo thinks this could also have caught a similar lockup in the DVB subsystem and would like to see it in .23.

johannes