diff options
| author | NeilBrown <neil@brown.name> | 2026-02-25 09:16:47 +1100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-06 10:24:11 +0100 |
| commit | 9ab68389843a434d7d49e2a986ebf6d01d81ae42 (patch) | |
| tree | 63aa3d3b71787e4be966195b37ce138b24bceb07 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c025a53314127b8cd236201bed765be0df5cf1eb (diff) | |
fs/proc: Don't lock root inode when creating "self" and "thread-self"
proc_setup_self() and proc_setup_thread_self() are only called from
proc_fill_super() which is before the filesystem is "live". So there is
no need to lock the root directory when adding "self" and "thread-self".
This is clear from simple_fill_super() which provides similar
functionality for other filesystems and does not lock anything.
The locking is not harmful, except that it may be confusing to a reader.
As part of an effort to centralise all locking for directories for
name-based operations (prior to changing some locking rules), it is
simplest to remove the locking here.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-3-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
