summaryrefslogtreecommitdiffstats
path: root/kernel/hung_task.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-09 01:04:38 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 21:22:04 -0400
commit5c3273ec3c6af356b29ff50a654f0dc33bf25a83 (patch)
treec398c4374497790da41a07a3a9ab06e1ced0316a /kernel/hung_task.c
parent8f9320d3a3993e76c8097fb8567ba5f3eb2cb91b (diff)
downloadlinux-5c3273ec3c6af356b29ff50a654f0dc33bf25a83.tar.gz
linux-5c3273ec3c6af356b29ff50a654f0dc33bf25a83.tar.bz2
linux-5c3273ec3c6af356b29ff50a654f0dc33bf25a83.zip
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 <kent.overstreet@linux.dev> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: fuyuanli <fuyuanli@didiglobal.com>
Diffstat (limited to 'kernel/hung_task.c')
-rw-r--r--kernel/hung_task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index 9a24574988d2..b2fc2727d654 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -43,6 +43,7 @@ static int __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 = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
+EXPORT_SYMBOL_GPL(sysctl_hung_task_timeout_secs);
/*
* Zero (default value) means use sysctl_hung_task_timeout_secs: