Skip to content

Commit 5c3273e

Browse files
author
Kent Overstreet
committed
kernel/hung_task.c: export sysctl_hung_task_timeout_secs
needed for thread_with_file; also rare but not unheard of to need this in module code, when blocking on user input. one workaround used by some code is wait_event_interruptible() - but that can be buggy if the outer context isn't expecting unwinding. Signed-off-by: Kent Overstreet <[email protected]> Cc: Andrew Morton <[email protected]> Cc: fuyuanli <[email protected]>
1 parent 8f9320d commit 5c3273e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/hung_task.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static int __read_mostly sysctl_hung_task_check_count = PID_MAX_LIMIT;
4343
* Zero means infinite timeout - no checking done:
4444
*/
4545
unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
46+
EXPORT_SYMBOL_GPL(sysctl_hung_task_timeout_secs);
4647

4748
/*
4849
* Zero (default value) means use sysctl_hung_task_timeout_secs:

0 commit comments

Comments
 (0)