diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-08-07 18:00:51 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-01 14:48:25 +0200 |
| commit | 493daf5bf2b9e931c93ef9223c840b0a6bb35474 (patch) | |
| tree | c5ee926901f1ace226acdfaca455b9a3b4dfa8d8 /tools/perf/scripts/python/task-analyzer.py | |
| parent | f1850e443b0e4f2429ddf42a8d5033ea54ae8a90 (diff) | |
interconnect: debugfs: replace writable string helper
debugfs_create_str() is being made read-only because its generic write
path is hard to make safe without adding more locking to the helper.
Convert the interconnect debugfs client src_node and dst_node entries to
local file operations before removing writable string support from
debugfs_create_str(). Protect the string replacement and path lookup with
the existing debugfs_lock.
The old code duplicated the strings under rcu_read_lock(), so it had to use
GFP_ATOMIC. The local file operations protect src_node and dst_node with
debugfs_lock instead, so the allocation can use GFP_KERNEL.
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Link: https://patch.msgid.link/20260807100053.1089834-2-chenyichong@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
