diff options
author | 2023-03-09 22:09:32 +1100 | |
---|---|---|
committer | 2023-03-29 12:23:45 +0200 | |
commit | 06fb4736139fde0e1431fe2a5b4912dcb7588d09 (patch) | |
tree | 25d2e93df9103be9b2f7a901e0215f1e2a6faef9 /drivers/base/class.c | |
parent | kernfs: Use a per-fs rwsem to protect per-fs list of kernfs_super_info. (diff) | |
download | wireguard-linux-06fb4736139fde0e1431fe2a5b4912dcb7588d09.tar.xz wireguard-linux-06fb4736139fde0e1431fe2a5b4912dcb7588d09.zip |
kernfs: change kernfs_rename_lock into a read-write lock.
kernfs_rename_lock protects a node's ->parent and thus kernfs topology.
Thus it can be used in cases that rely on a stable kernfs topology.
Change it to a read-write lock for better scalability.
Suggested by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Link: https://lore.kernel.org/r/20230309110932.2889010-4-imran.f.khan@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/class.c')
0 files changed, 0 insertions, 0 deletions