workqueue: add cmdline parameter workqueue.panic_on_stall
authorSangmoon Kim <sangmoon.kim@samsung.com>
Tue, 6 Aug 2024 05:12:09 +0000 (14:12 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 6 Aug 2024 20:06:31 +0000 (10:06 -1000)
commit073107b39e553a5ef911f019d4e433fd5a8601b7
tree5c9b7640f04e95c0d3d7eed9ab4c2d554e68511e
parent8400291e289ee6b2bf9779ff1c83a291501f017b
workqueue: add cmdline parameter workqueue.panic_on_stall

When we want to debug the workqueue stall, we can immediately make
a panic to get the information we want.

In some systems, it may be necessary to quickly reboot the system to
escape from a workqueue lockup situation. In this case, we can control
the number of stall detections to generate panic.

workqueue.panic_on_stall sets the number times of the stall to trigger
panic. 0 disables the panic on stall.

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c