diff options
| author | Zhuangzhuang Wang <3050681779@qq.com> | 2026-10-30 07:07:27 +0000 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-11-06 11:16:04 +0100 |
| commit | aa63c0df79920f6abe1b66e1f8b6443ad2d62d0e (patch) | |
| tree | 59390b59c04c8368dc5cb06c0ff7f4c9100a45cc /tools/lib/python | |
| parent | d68ce4e71248e1ff5af9654b407541d9260b3ba5 (diff) | |
locking/lockdep: Fix inverted "on"/"last" CPU label in lockdep_print_held_locks()
Commit 051f5d223dfc ("lockdep: Enable the printing of held locks of
remote running tasks and print task CPU") added the task's CPU to the
"locks held by" line. As the comment above the printk() describes, a
running task should be reported as "on CPU#N" and a task that is not
running as "last CPU#N". The ternary has the two strings swapped, so
the labels are inverted.
Swap the strings so the output matches the comment.
Fixes: 051f5d223dfc ("lockdep: Enable the printing of held locks of remote running tasks and print task CPU")
Signed-off-by: Zhuangzhuang Wang <3050681779@qq.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20261030-lockdep-fix-cpu-label-v1-1-96875c74b15b@qq.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
