Commit f84c9dd
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent 32d572e commit f84c9dd
2 files changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8339 | 8339 | | |
8340 | 8340 | | |
8341 | 8341 | | |
| 8342 | + | |
| 8343 | + | |
| 8344 | + | |
| 8345 | + | |
| 8346 | + | |
| 8347 | + | |
| 8348 | + | |
| 8349 | + | |
8342 | 8350 | | |
8343 | 8351 | | |
8344 | 8352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7571 | 7571 | | |
7572 | 7572 | | |
7573 | 7573 | | |
| 7574 | + | |
| 7575 | + | |
| 7576 | + | |
| 7577 | + | |
7574 | 7578 | | |
7575 | 7579 | | |
7576 | 7580 | | |
| |||
7622 | 7626 | | |
7623 | 7627 | | |
7624 | 7628 | | |
7625 | | - | |
| 7629 | + | |
| 7630 | + | |
| 7631 | + | |
| 7632 | + | |
| 7633 | + | |
| 7634 | + | |
7626 | 7635 | | |
7627 | 7636 | | |
7628 | 7637 | | |
7629 | 7638 | | |
7630 | 7639 | | |
7631 | 7640 | | |
7632 | 7641 | | |
| 7642 | + | |
| 7643 | + | |
7633 | 7644 | | |
7634 | 7645 | | |
7635 | 7646 | | |
| |||
7644 | 7655 | | |
7645 | 7656 | | |
7646 | 7657 | | |
| 7658 | + | |
7647 | 7659 | | |
7648 | 7660 | | |
7649 | 7661 | | |
7650 | 7662 | | |
| 7663 | + | |
7651 | 7664 | | |
7652 | 7665 | | |
7653 | 7666 | | |
| |||
7681 | 7694 | | |
7682 | 7695 | | |
7683 | 7696 | | |
| 7697 | + | |
| 7698 | + | |
7684 | 7699 | | |
7685 | 7700 | | |
7686 | 7701 | | |
7687 | 7702 | | |
7688 | 7703 | | |
7689 | 7704 | | |
7690 | | - | |
7691 | | - | |
| 7705 | + | |
7692 | 7706 | | |
7693 | 7707 | | |
7694 | 7708 | | |
| |||
7701 | 7715 | | |
7702 | 7716 | | |
7703 | 7717 | | |
7704 | | - | |
| 7718 | + | |
7705 | 7719 | | |
7706 | 7720 | | |
7707 | 7721 | | |
| |||
0 commit comments