mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/hung_task.c: export sysctl_hung_task_timeout_secs
@ 2024-02-09  7:09 Kent Overstreet
  2024-02-09 22:13 ` Andrew Morton
  2024-02-15  5:26 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Kent Overstreet @ 2024-02-09  7:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: Kent Overstreet, Andrew Morton, fuyuanli

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>
---
 kernel/hung_task.c | 1 +
 1 file changed, 1 insertion(+)

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:
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-16  7:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09  7:09 [PATCH] kernel/hung_task.c: export sysctl_hung_task_timeout_secs Kent Overstreet
2024-02-09 22:13 ` Andrew Morton
2024-02-09 22:22   ` Kent Overstreet
2024-02-15  5:26 ` Christoph Hellwig
2024-02-15 18:55   ` Andrew Morton
2024-02-15 23:26     ` Kent Overstreet
2024-02-16  7:11       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®