diff options
| author | 2026-03-10 18:00:59 -0700 | |
|---|---|---|
| committer | 2026-03-11 12:16:21 -1000 | |
| commit | 05070cd654f38346d051b8c411faff196fa58880 (patch) | |
| tree | c3345845cbb27bca7b745d2d909991fb28eb2ca3 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | cgroup: Expose some cgroup helpers (diff) | |
cgroup: reduce cgroup_file_kn_lock hold time in cgroup_file_notify()
cgroup_file_notify() calls kernfs_notify() while holding the global
cgroup_file_kn_lock. kernfs_notify() does non-trivial work including
wake_up_interruptible() and acquisition of a second global spinlock
(kernfs_notify_lock), inflating the hold time.
Take a kernfs_get() reference under the lock and call kernfs_notify()
after dropping it, following the pattern from cgroup_file_show().
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
