Messages in this thread | | | From | Imran Khan <> | Subject | [RFC PATCH v2 0/2] kernfs: use kernfs_node specific mutex and spinlock | Date | Mon, 3 Jan 2022 19:45:42 +1100 |
| |
RFC patchset to reduce usage of global locks in kernfs operations.
PATCH-1: Move kernfs_open_file_mutex and kernfs_open_node_lock within kernfs_node.
PATCH-2: Use per kernfs_node specific lock to access permissions
------------------------------------------------------------------
Changes since v1: - Introduce PATCH-2 to reduce contention seen around kernfs_rwsem after introduction of PATCH-1.
Imran Khan (2): kernfs: use kernfs_node specific mutex and spinlock. kernfs: Reduce contention around global per-fs kernfs_rwsem.
fs/kernfs/dir.c | 6 ++++++ fs/kernfs/file.c | 48 +++++++++++++++--------------------------- fs/kernfs/inode.c | 25 +++++++++++++++------- include/linux/kernfs.h | 3 +++ 4 files changed, 43 insertions(+), 39 deletions(-)
base-commit: ea586a076e8aa606c59b66d86660590f18354b11 -- 2.30.2
| |