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

Imran Khan posted 2 patches 4 years, 5 months ago
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(-)
[RFC PATCH v2 0/2] kernfs: use kernfs_node specific mutex and spinlock
Posted by Imran Khan 4 years, 5 months ago
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