mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] workqueue: Introduce panic_on_stall_time module parameter
@ 2026-02-06 11:18 Breno Leitao
  2026-02-06 11:18 ` [PATCH 1/2] workqueue: add time-based panic for stalls Breno Leitao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Breno Leitao @ 2026-02-06 11:18 UTC (permalink / raw)
  To: Tejun Heo, Lai Jiangshan
  Cc: linux-kernel, osandov, rneu, Breno Leitao, kernel-team

This series adds a new module parameter 'panic_on_stall_time' that allows the
system to panic if a workqueue stall lasts longer than the specified number of
seconds.

Unlike the existing 'panic_on_stall' parameter which counts total stall
events over the kernel's lifetime, this new parameter triggers a panic
based on the actual duration of a 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.

This approach differs from simply setting watchdog_thresh=120 and
panic_on_stall=1, as the user still wants to observe stalls but only
trigger a crash for stalls that are exceptionally long and remain
unresolved.

Signed-off-by: Breno Leitao <leitao@debian.org>
---
Breno Leitao (2):
      workqueue: add time-based panic for stalls
      workqueue: replace BUG_ON with panic in panic_on_wq_watchdog

 Documentation/admin-guide/kernel-parameters.txt |  8 +++++++
 kernel/workqueue.c                              | 28 ++++++++++++++++++++-----
 2 files changed, 31 insertions(+), 5 deletions(-)
---
base-commit: 6bd9ed02871f22beb0e50690b0c3caf457104f7c
change-id: 20260205-wqstall_panic_time-fbfe60f33c85

Best regards,
--  
Breno Leitao <leitao@debian.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-09 16:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-06 11:18 [PATCH 0/2] workqueue: Introduce panic_on_stall_time module parameter Breno Leitao
2026-02-06 11:18 ` [PATCH 1/2] workqueue: add time-based panic for stalls Breno Leitao
2026-02-06 11:18 ` [PATCH 2/2] workqueue: replace BUG_ON with panic in panic_on_wq_watchdog Breno Leitao
2026-02-09 16:45 ` [PATCH 0/2] workqueue: Introduce panic_on_stall_time module parameter Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome