| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: hung_task-show-the-blocker-task-if-the-task-is-hung-on-mutex-fix |
| Date: Thu Mar 13 03:28:05 PM PDT 2025 |
| |
| implement debug_show_blocker() in C rather than in CPP |
| |
| Cc: Anna Schumaker <anna.schumaker@oracle.com> |
| Cc: Boqun Feng <boqun.feng@gmail.com> |
| Cc: Ingo Molnar <mingo@redhat.com> |
| Cc: Joel Granados <joel.granados@kernel.org> |
| Cc: Kent Overstreet <kent.overstreet@linux.dev> |
| Cc: Lance Yang <ioworker0@gmail.com> |
| Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org> |
| Cc: Sergey Senozhatsky <senozhatsky@chromium.org> |
| Cc: Steven Rostedt <rostedt@goodmis.org> |
| Cc: Tomasz Figa <tfiga@chromium.org> |
| Cc: Waiman Long <longman@redhat.com> |
| Cc: Will Deacon <will@kernel.org> |
| Cc: Yongliang Gao <leonylgao@tencent.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| kernel/hung_task.c | 4 +++- |
| 1 file changed, 3 insertions(+), 1 deletion(-) |
| |
| --- a/kernel/hung_task.c~hung_task-show-the-blocker-task-if-the-task-is-hung-on-mutex-fix |
| +++ a/kernel/hung_task.c |
| @@ -125,7 +125,9 @@ static void debug_show_blocker(struct ta |
| } |
| } |
| #else |
| -#define debug_show_blocker(t) do {} while (0) |
| +static inline void debug_show_blocker(struct task_struct *task) |
| +{ |
| +} |
| #endif |
| |
| static void check_hung_task(struct task_struct *t, unsigned long timeout) |
| _ |