Skip to contentSkip to conversation

kernel/hung_task: unexport sysctl_hung_task_timeout_secs

PATCH Applied Christoph Hellwig 3 participants 3 messages Nov 4, 2025 Hung task detector

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/hung_task: unexport sysctl_hung_task_timeout_secs

This was added by the bcachefs pull requests despite various objections, and with bcachefs removed is now unused.

This reverts commit 5c3273ec3c6af356b29ff50a654f0dc33bf25a83.

---
 kernel/hung_task.c | 1 -
 1 file changed, 1 deletion(-)
kernel/hung_task.c +0 -1
index b2c1f14b8129..1dfb9bc1bdef 100644
@@ -50,7 +50,6 @@ static unsigned long __read_mostly sysctl_hung_task_detect_count;
  * 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:
Signature · 1 line
2.47.3
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Christoph Hellwig

This was added by the bcachefs pull requests despite various objections, and with bcachefs removed is now unused.

This reverts commit 5c3273ec3c6af356b29ff50a654f0dc33bf25a83.

---

Nice cleanup! LGTM:

Quoted 15 lines
  kernel/hung_task.c | 1 -
  1 file changed, 1 deletion(-)
kernel/hung_task.c +0 -1
index b2c1f14b8129..1dfb9bc1bdef 100644
@@ -50,7 +50,6 @@ static unsigned long __read_mostly sysctl_hung_task_detect_count;
   * 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:
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 5 lines · On Tue, 4 Nov 2025 07:19:20 -0500 Christoph Hellwig <[email protected]> wrote:

This was added by the bcachefs pull requests despite various objections, and with bcachefs removed is now unused.

This reverts commit 5c3273ec3c6af356b29ff50a654f0dc33bf25a83.

Looks good to me.

Thanks!

Quoted 20 lines
---
 kernel/hung_task.c | 1 -
 1 file changed, 1 deletion(-)
kernel/hung_task.c +0 -1
index b2c1f14b8129..1dfb9bc1bdef 100644
@@ -50,7 +50,6 @@ static unsigned long __read_mostly sysctl_hung_task_detect_count;
  * 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:
Signature · 1 line
2.47.3
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>