]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
workqueue: add time-based panic for stalls
authorBreno Leitao <leitao@debian.org>
Fri, 6 Feb 2026 11:18:01 +0000 (03:18 -0800)
committerTejun Heo <tj@kernel.org>
Sat, 7 Feb 2026 16:54:38 +0000 (06:54 -1000)
commitf84c9dd34e8dce3fb42598344da711573b383626
tree30135f35b13ff9b195fe9c1e86764eb12a28ba05
parent32d572e39031920691abfada68cdb19ad44b4eeb
workqueue: add time-based panic for stalls

Add a new module parameter 'panic_on_stall_time' that triggers a panic
when a workqueue stall persists for longer than the specified duration
in seconds.

Unlike 'panic_on_stall' which counts accumulated stall events, this
parameter triggers based on the duration of a single continuous stall.
This is useful for catching truly stuck workqueues rather than
accumulating transient stalls.

Usage:
  workqueue.panic_on_stall_time=120

This would panic if any workqueue pool has been stalled for 120 seconds
or more.

The stall duration is measured from the workqueue last progress
(poll_ts) which accounts for legitimate system stalls.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/workqueue.c