]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
workqueue: replace BUG_ON with panic in panic_on_wq_watchdog
authorBreno Leitao <leitao@debian.org>
Fri, 6 Feb 2026 11:18:02 +0000 (03:18 -0800)
committerTejun Heo <tj@kernel.org>
Sat, 7 Feb 2026 16:54:42 +0000 (06:54 -1000)
commit9cb8b0f289560728dbb8b88158e7a957e2e90a14
tree0d85afce6d08dee0fdc1abe7c8bd23d66d85971c
parentf84c9dd34e8dce3fb42598344da711573b383626
workqueue: replace BUG_ON with panic in panic_on_wq_watchdog

Replace BUG_ON() with panic() in panic_on_wq_watchdog(). This is not
a bug condition but a deliberate forced panic requested by the user
via module parameters to crash the system for debugging purposes.

Using panic() instead of BUG_ON() makes this intent clearer and provides
more informative output about which threshold was exceeded and the actual
values, making it easier to diagnose the stall condition from crash dumps.

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