All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lance Yang <lance.yang@linux.dev>
To: Andrew Morton <akpm@linux-foundation.org>, Ye Liu <ye.liu@linux.dev>
Cc: Ye Liu <liuye@kylinos.cn>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] hung_task: Add detection count to hung task warning message
Date: Fri, 25 Jul 2025 10:24:33 +0800	[thread overview]
Message-ID: <3ecb6ed2-dda8-4557-98aa-52de81c47b6d@linux.dev> (raw)
In-Reply-To: <20250724151035.cc2d421d1b1ed20b89be1917@linux-foundation.org>



On 2025/7/25 06:10, Andrew Morton wrote:
> On Thu, 24 Jul 2025 20:06:52 +0800 Lance Yang <lance.yang@linux.dev> wrote:
> 
>>
>>
>> On 2025/7/24 15:23, Ye Liu wrote:
>>> From: Ye Liu <liuye@kylinos.cn>
>>>
>>> Add [#N] to hung task warnings to show occurrence count.
>>> This helps quickly identify warning order when multiple
>>> messages appear in logs.
>>
>> Hmm... once we have this number, what do we do with it?
> 
> Yes, adding to the changelog a more comprehensive description of the
> use-cases would help get this patch into Linux.

Yep, exactly. Please sell this change to us! A good changelog should
explain not just what the patch does, but why it's necessary ;p

> 
>> While I totally get the desire for a quick reference number, my thinking
>> is that the hung_task_detect_count counter is the intended and more
>> reliable way for users to check.
> 
> But that's what this patch does?  Confused.

I'm just not sure if this quick reference number is something users
actually need, as there doesn't seem to be a strong use-case for it yet.

My point was that actively checking the sysctl is the proper way to get the
total count. But of course, if users genuinely need this inline number, I
have no objection ;)

> 
>> But like I said before, let's see what Andrew thinks ;)
> 
> Andrew thinks it's a pain when the title of a patch is changed!
> Fortunately the changelog had a "Link to v1".

https://lore.kernel.org/lkml/20250721031755.1418556-1-ye.liu@linux.dev/

Thanks,
Lance


      reply	other threads:[~2025-07-25  2:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-24  7:23 [PATCH v2] hung_task: Add detection count to hung task warning message Ye Liu
2025-07-24 12:06 ` Lance Yang
2025-07-24 22:10   ` Andrew Morton
2025-07-25  2:24     ` Lance Yang [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=3ecb6ed2-dda8-4557-98aa-52de81c47b6d@linux.dev \
    --to=lance.yang@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuye@kylinos.cn \
    --cc=ye.liu@linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.