From: "Li,Rongqing" <lirongqing@baidu.com>
To: Kees Cook <kees@kernel.org>, Randy Dunlap <rdunlap@infradead.org>,
"corbet@lwn.net" <corbet@lwn.net>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"lance.yang@linux.dev" <lance.yang@linux.dev>,
"mhiramat@kernel.org" <mhiramat@kernel.org>,
"paulmck@kernel.org" <paulmck@kernel.org>,
"pawan.kumar.gupta@linux.intel.com"
<pawan.kumar.gupta@linux.intel.com>,
"mingo@kernel.org" <mingo@kernel.org>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"rostedt@goodmis.org" <rostedt@goodmis.org>,
"arnd@arndb.de" <arnd@arndb.de>,
"feng.tang@linux.alibaba.com" <feng.tang@linux.alibaba.com>,
"pauld@redhat.com" <pauld@redhat.com>,
"joel.granados@kernel.org" <joel.granados@kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [外部邮件] Re: [PATCH][v2] hung_task: Panic after fixed number of hung tasks
Date: Sat, 11 Oct 2025 23:58:56 +0000 [thread overview]
Message-ID: <6c4905288f374bf2ad48492cd03c473e@baidu.com> (raw)
In-Reply-To: <1729312f8358451ba32eabdea86a7820@baidu.com>
>
>
> > On October 10, 2025 5:25:05 PM PDT, Randy Dunlap
> > <rdunlap@infradead.org>
> > wrote:
> > >Hi,
> > >
> > >On 9/27/25 10:31 PM, lirongqing wrote:
> > >> From: Li RongQing <lirongqing@baidu.com>
> > >>
> > >> Currently, when hung_task_panic is enabled, kernel will panic
> > >> immediately upon detecting the first hung task. However, some hung
> > >> tasks are transient and the system can recover fully, while others
> > >> are unrecoverable and trigger consecutive hung task reports, and a
> > >> panic is
> > expected.
> > >>
> > >> This commit adds a new sysctl parameter hung_task_count_to_panic to
> > >> allows specifying the number of consecutive hung tasks that must be
> > >> detected
> >
> > Why make a new sysctl? Can't you just use hung_task_panic and raise
> > the max to INT_MAX?
> >
>
Sorry, I misunderstand at first.
I'm not sure if this sysctl hung_task_panic can be modified, and if changed, BOOTPARAM_HUNG_TASK_PANIC should be changed, and whether both changing will cause issues for users ?
If no one objects, I will reuse hung_task_panic , and not adding a new sysctl
Thanks
-Li
>
> However, this will prevent the printing of hung task warnings. Hung task
> warnings are very useful for identifying which tasks are hanging and where
> they are stuck.
>
> If there is this function, I hope to shorten sysctl_hung_task_timeout_secs to
> give more information.
>
> And rcu has the similar function as dfe564045c653d "(rcu: Panic after fixed
> number of stalls)"
>
> -Li
>
prev parent reply other threads:[~2025-10-12 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-28 5:31 [PATCH][v2] hung_task: Panic after fixed number of hung tasks lirongqing
2025-09-28 6:55 ` Lance Yang
2025-09-28 7:03 ` [外部邮件] " Li,Rongqing
2025-09-28 7:12 ` Lance Yang
2025-09-29 0:47 ` Masami Hiramatsu
2025-10-11 12:03 ` [????] " Li,Rongqing
2025-10-11 14:53 ` Li,Rongqing
2025-10-11 0:25 ` Randy Dunlap
2025-10-11 5:47 ` Kees Cook
2025-10-11 10:57 ` [外部邮件] " Li,Rongqing
2025-10-11 23:58 ` Li,Rongqing [this message]
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=6c4905288f374bf2ad48492cd03c473e@baidu.com \
--to=lirongqing@baidu.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=feng.tang@linux.alibaba.com \
--cc=joel.granados@kernel.org \
--cc=kees@kernel.org \
--cc=lance.yang@linux.dev \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@kernel.org \
--cc=pauld@redhat.com \
--cc=paulmck@kernel.org \
--cc=pawan.kumar.gupta@linux.intel.com \
--cc=rdunlap@infradead.org \
--cc=rostedt@goodmis.org \
/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