From: Greg KH <gregkh@linuxfoundation.org>
To: Lance Yang <lance.yang@linux.dev>
Cc: Aaron Tomlin <atomlin@atomlin.com>,
linux-kernel@vger.kernel.org, mhiramat@kernel.org,
akpm@linux-foundation.org, Petr Mladek <pmladek@suse.com>
Subject: Re: [PATCH] hung_task: Migrate hung_task_detect_count to sysfs
Date: Sun, 30 Nov 2025 09:30:53 +0100 [thread overview]
Message-ID: <2025113039-tycoon-glowworm-49f8@gregkh> (raw)
In-Reply-To: <3e672e64-c03d-4129-ac13-13a45135b0f1@linux.dev>
On Sun, Nov 30, 2025 at 01:43:51PM +0800, Lance Yang wrote:
> Hi Aaron,
>
> Thanks for the patch.
>
> On 2025/11/30 07:51, Aaron Tomlin wrote:
> > The hung_task_detect_count metric, which tracks the cumulative number of
> > tasks detected as hung since boot, is currently exposed via the legacy
> > /proc/sys/kernel/hung_task_detect_count sysctl file.
> >
> > Migrate this metric to a read-only file in the /sys/kernel/ hierarchy:
> > /sys/kernel/hung_task_detect_count. The sysctl file is removed, and the
> > metric is now controlled by the CONFIG_SYSFS Kconfig option.
>
> Emm, I don't think we should do this :)
I agree, because:
> Removing the sysctl file is going to break userspace tools that
> currently read it ...
We can't do that.
thanks,
greg k-h
next prev parent reply other threads:[~2025-11-30 8:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-29 23:51 Aaron Tomlin
2025-11-30 5:43 ` Lance Yang
2025-11-30 8:30 ` Greg KH [this message]
2025-11-30 17:11 ` Aaron Tomlin
2025-12-01 3:08 ` Lance Yang
2025-12-01 22:57 ` Aaron Tomlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025113039-tycoon-glowworm-49f8@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=akpm@linux-foundation.org \
--cc=atomlin@atomlin.com \
--cc=lance.yang@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=pmladek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®