lkml.org 
[lkml]   [2025]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] hung_task: Provide runtime reset interface for hung task detector
On Tue, Dec 09, 2025 at 12:54:14PM +0800, Lance Yang wrote:
> On 2025/12/9 12:12, Aaron Tomlin wrote:
> > This patch introduces a new write-only sysfs file,
> > hung_task_detect_count_reset, directly under /sys/kernel/.
> > This file exposes an explicit control point for resetting the
> > /proc/sys/kernel/hung_task_detect_count counter.

Hi Lance,

> Is the new file really necessary? I'd perfer if we just made the
> existing hung_task_detect_count writable ;)

Acknowledged. The primary motivation here was initiating a migration away
from the legacy procfs interface.

> Just let users echo 0 (or anything) to reset it, and make sure to
> update the documentation as well.

Understood. I will send a v2.

Kind regards,
--
Aaron Tomlin

\
 
 \ /
  Last update: 2025-12-09 23:07    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog