[RFC PATCH v2 0/2] kernfs: use kernfs_node specific mutex and spinlock

From: Imran Khan
Date: Mon Jan 03 2022 - 03:46:38 EST


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