* [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
@ 2026-07-30 3:17 Xibo Wang
2026-07-30 4:47 ` Lance Yang
2026-07-30 6:18 ` [PATCH v2] " Xibo Wang
0 siblings, 2 replies; 5+ messages in thread
From: Xibo Wang @ 2026-07-30 3:17 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, mhiramat, lance.yang, Xibo Wang
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.
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.
config WQ_WATCHDOG
bool "Detect Workqueue Stalls"
--
2.46.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
2026-07-30 3:17 [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help Xibo Wang
@ 2026-07-30 4:47 ` Lance Yang
2026-07-30 6:16 ` Xibo Wang
2026-07-30 6:18 ` [PATCH v2] " Xibo Wang
1 sibling, 1 reply; 5+ messages in thread
From: Lance Yang @ 2026-07-30 4:47 UTC (permalink / raw)
To: wangxb12; +Cc: akpm, linux-kernel, mhiramat, lance.yang, pmladek
+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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
2026-07-30 4:47 ` Lance Yang
@ 2026-07-30 6:16 ` Xibo Wang
0 siblings, 0 replies; 5+ messages in thread
From: Xibo Wang @ 2026-07-30 6:16 UTC (permalink / raw)
To: lance.yang; +Cc: akpm, linux-kernel, mhiramat, pmladek, Xibo Wang
Hi Lance,
On Thu, Jul 30, 2026 at 12:47:35PM +0800, Lance Yang wrote:
> +Cc Petr
>
> get_maintainer.pl is your friend :) please use it next time.
Will do. Sorry for missing it.
> "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.
Agreed, that's a fair point. I'll adopt your suggested wording and also
Cc Petr in v2.
Thanks,
Xibo
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
2026-07-30 3:17 [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help Xibo Wang
2026-07-30 4:47 ` Lance Yang
@ 2026-07-30 6:18 ` Xibo Wang
2026-07-30 7:21 ` Lance Yang
1 sibling, 1 reply; 5+ messages in thread
From: Xibo Wang @ 2026-07-30 6:18 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, mhiramat, lance.yang, pmladek, Xibo Wang
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.
Cc: Petr Mladek <pmladek@suse.com>
Suggested-by: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Xibo Wang <wangxb12@chinatelecom.cn>
---
lib/Kconfig.debug | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1244dcac2294..718475d974bb 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1320,10 +1320,10 @@ 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 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.
config WQ_WATCHDOG
bool "Detect Workqueue Stalls"
--
2.46.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help
2026-07-30 6:18 ` [PATCH v2] " Xibo Wang
@ 2026-07-30 7:21 ` Lance Yang
0 siblings, 0 replies; 5+ messages in thread
From: Lance Yang @ 2026-07-30 7:21 UTC (permalink / raw)
To: Xibo Wang; +Cc: linux-kernel, mhiramat, pmladek, akpm
On 2026/7/30 14:18, 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.
>
> Cc: Petr Mladek <pmladek@suse.com>
> Suggested-by: Lance Yang <lance.yang@linux.dev>
> Signed-off-by: Xibo Wang <wangxb12@chinatelecom.cn>
> ---
Thanks.
Reviewed-by: Lance Yang <lance.yang@linux.dev>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-07-30 7:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30 3:17 [PATCH] hung_task: update DETECT_HUNG_TASK_BLOCKER Kconfig help Xibo Wang
2026-07-30 4:47 ` Lance Yang
2026-07-30 6:16 ` Xibo Wang
2026-07-30 6:18 ` [PATCH v2] " Xibo Wang
2026-07-30 7:21 ` Lance Yang
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.