From: Lance Yang <lance.yang@linux.dev>
To: wangxb12@chinatelecom.cn
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
mhiramat@kernel.org, lance.yang@linux.dev, pmladek@suse.com
Subject: Re: [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
Date: Thu, 30 Jul 2026 12:47:35 +0800 [thread overview]
Message-ID: <20260730044735.9943-1-lance.yang@linux.dev> (raw)
In-Reply-To: <20260730031751.67840-1-wangxb12@chinatelecom.cn>
+Cc Petr
get_maintainer.pl is your friend :) please use it next time.
On Thu, Jul 30, 2026 at 11:17:51AM +0800, Xibo Wang wrote:
>The help text still says the feature only covers mutexes, but blocker
>tracking has since been extended to semaphores and rwsems. Update the
>description to match the supported lock types.
Thanks!
>Signed-off-by: Xibo Wang <wangxb12@chinatelecom.cn>
>---
> lib/Kconfig.debug | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
>diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
>index 1244dcac2294..c2ffaff918d1 100644
>--- a/lib/Kconfig.debug
>+++ b/lib/Kconfig.debug
>@@ -1320,10 +1320,11 @@ config DETECT_HUNG_TASK_BLOCKER
> depends on !PREEMPT_RT
> default y
> help
>- Say Y here to show the blocker task's stacktrace who acquires
>- the mutex lock which "hung tasks" are waiting.
>- This will add overhead a bit but shows suspicious tasks and
>- call trace if it comes from waiting a mutex.
>+ Say Y here to show the blocker task's stacktrace that holds
>+ the lock which "hung tasks" are waiting on. Supported lock
>+ types are mutex, semaphore, and rwsem.
>+ This will add a bit of overhead but shows suspicious tasks and
>+ call traces if it comes from waiting on one of these locks.
"holds the lock" seems too strong here...
For semaphores we only have the last holder, and rwsem owner tracking is
best-effort for readers. So this is only a possible blocker, not
necessarily the current lock holder.
I'd rather go with:
Say Y here to show a possible blocker task's stacktrace when
a hung task is waiting on a mutex, semaphore, or rwsem.
This will add a bit of overhead but shows suspicious tasks and
call traces for waits on one of these locks.
Cheers, Lance
next prev parent reply other threads:[~2026-07-30 4:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 3:17 [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help Xibo Wang
2026-07-30 4:47 ` Lance Yang [this message]
2026-07-30 6:16 ` Xibo Wang
2026-07-30 6:18 ` [PATCH v2] " Xibo Wang
2026-07-30 7:21 ` Lance Yang
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=20260730044735.9943-1-lance.yang@linux.dev \
--to=lance.yang@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=pmladek@suse.com \
--cc=wangxb12@chinatelecom.cn \
/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.