mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
workqueue: Add stall detector sample module
Add a sample module under samples/workqueue/stall_detector/ that reproduces a workqueue stall caused by PF_WQ_WORKER misuse. The module queues two work items on the same per-CPU pool, then clears PF_WQ_WORKER and sleeps in wait_event_idle(), hiding from the concurrency manager and stalling the second work item indefinitely. This is useful for testing the workqueue watchdog stall diagnostics. Signed-off-by: Breno Leitao <leitao@debian.org> Acked-by: Song Liu <song@kernel.org> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
1
samples/workqueue/stall_detector/Makefile
Normal file
1
samples/workqueue/stall_detector/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
obj-m += wq_stall.o
|
||||
Reference in New Issue
Block a user