lkml.org 
[lkml]   [2022]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH v2 0/2] kernfs: use kernfs_node specific mutex and spinlock
Date
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

\
 
 \ /
  Last update: 2022-01-03 09:47    [W:0.062 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site