Commit 9cb8b0f
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent f84c9dd commit 9cb8b0f
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7637 | 7637 | | |
7638 | 7638 | | |
7639 | 7639 | | |
7640 | | - | |
| 7640 | + | |
| 7641 | + | |
| 7642 | + | |
7641 | 7643 | | |
7642 | 7644 | | |
7643 | | - | |
| 7645 | + | |
| 7646 | + | |
| 7647 | + | |
7644 | 7648 | | |
7645 | 7649 | | |
7646 | 7650 | | |
| |||
0 commit comments