diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-08-07 18:00:51 +0800 |
|---|---|---|
| committer | Georgi Djakov <djakov@kernel.org> | 2026-09-28 19:24:01 +0300 |
| commit | 28f76170fd90051dd65a8330004fff3f386a56da (patch) | |
| tree | ecf89c247af1fb26c7f0781a9e1144e40138b11a /tools/perf/scripts/python/task-analyzer.py | |
| parent | e0667aa9c6f997e827ba9444d19550dea95d2169 (diff) | |
| download | linux-next-28f76170fd90051dd65a8330004fff3f386a56da.tar.gz linux-next-28f76170fd90051dd65a8330004fff3f386a56da.zip | |
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: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
