History

softlockup: allow panic on lockup

allow users to configure the softlockup detector to generate a panic instead of a warning message. high-availability systems might opt for this strict method (combined with panic_timeout= boot option/sysctl), instead of generating softlockup warnings ad infinitum. also, automated tests work better if the system reboots reliably (into a safe kernel) in case of a lockup. The full spectrum of configurability is supported: boot option, sysctl option and Kconfig option. it's default-disabled.

Ingo Molnar committed 18 years ago

Commit 9c44bc01 parent 75d3bce5 files · +62 −2Browse files

Showing the changes to kernel/sysctl.c (1 of 5 files). Show all

Unified · Split

kernel/sysctl.c+11−0
@@ -727,6 +727,17 @@ static struct ctl_table kern_table[] = { · 726 unmodified lines
727727 },
728728 #endif
729729 #ifdef CONFIG_DETECT_SOFTLOCKUP
730+ {
731+ .ctl_name = CTL_UNNUMBERED,
732+ .procname = "softlockup_panic",
733+ .data = &softlockup_panic,
734+ .maxlen = sizeof(int),
735+ .mode = 0644,
736+ .proc_handler = &proc_doulongvec_minmax,
737+ .strategy = &sysctl_intvec,
738+ .extra1 = &zero,
739+ .extra2 = &one,
740+ },
730741 {
731742 .ctl_name = CTL_UNNUMBERED,
732743 .procname = "softlockup_thresh",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t