diff options
| author | Shakeel Butt <shakeel.butt@linux.dev> | 2026-03-11 04:00:59 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-03-12 01:16:21 +0300 |
| commit | 05070cd654f38346d051b8c411faff196fa58880 (patch) | |
| tree | c3345845cbb27bca7b745d2d909991fb28eb2ca3 /include | |
| parent | 5b30afc20b3fea29b9beb83c6415c4ff06f774aa (diff) | |
| download | linux-05070cd654f38346d051b8c411faff196fa58880.tar.xz | |
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 'include')
0 files changed, 0 insertions, 0 deletions
