path: root/kernel/hung_task.c
diff options
authorJeff Mahoney <>2011-04-27 18:27:24 (GMT)
committerIngo Molnar <>2011-04-28 07:13:17 (GMT)
commite11feaa1192a079ba8e88a12121e9b12d55d4239 (patch)
tree41d7c546af7663132a12951f4ba9392942cde5db /kernel/hung_task.c
parente0944ee63f7249802be74454cef81c97630ae1cd (diff)
watchdog, hung_task_timeout: Add Kconfig configurable default
This patch allows the default value for sysctl_hung_task_timeout_secs to be set at build time. The feature carries virtually no overhead, so it makes sense to keep it enabled. On heavily loaded systems, though, it can end up triggering stack traces when there is no bug other than the system being underprovisioned. We use this patch to keep the hung task facility available but disabled at boot-time. The default of 120 seconds is preserved. As a note, commit e162b39a may have accidentally reverted commit fb822db4, which raised the default from 120 seconds to 480 seconds. Signed-off-by: Jeff Mahoney <> Acked-by: Mandeep Singh Baines <> Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'kernel/hung_task.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index 53ead17..ea64012 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -33,7 +33,7 @@ unsigned long __read_mostly sysctl_hung_task_check_count = PID_MAX_LIMIT;
* Zero means infinite timeout - no checking done:
-unsigned long __read_mostly sysctl_hung_task_timeout_secs = 120;
+unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
unsigned long __read_mostly sysctl_hung_task_warnings = 10;