public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH kernfs 0/3] kernfs: switch global locks to per-fs lock
@ 2025-04-11 18:31 alexjlzheng
  2025-04-11 18:31 ` [PATCH kernfs 1/3] kernfs: switch global kernfs_idr_lock " alexjlzheng
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: alexjlzheng @ 2025-04-11 18:31 UTC (permalink / raw)
  To: gregkh, tj; +Cc: alexjlzheng, linux-kernel

From: Jinliang Zheng <alexjlzheng@tencent.com>

The kernfs implementation has big lock granularity so every kernfs-based
(e.g., sysfs, cgroup) fs are able to compete the locks. This patchset
switches the global locks to per-fs locks.

In fact, the implementation of global locks has not yet introduced
performance issues. But in the long run, more and more file systems will
be implemented based on the kernfs framework, so this optimization is
meaningful.

Jinliang Zheng (3):
  kernfs: switch global kernfs_idr_lock to per-fs lock
  kernfs: switch global kernfs_rename_lock to per-fs lock
  kernfs: switch global kernfs_pr_cont_lock to per-fs lock

 fs/kernfs/dir.c             | 74 ++++++++++++++++++-------------------
 fs/kernfs/kernfs-internal.h | 27 ++++++++++++--
 2 files changed, 59 insertions(+), 42 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-04-15 15:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 18:31 [PATCH kernfs 0/3] kernfs: switch global locks to per-fs lock alexjlzheng
2025-04-11 18:31 ` [PATCH kernfs 1/3] kernfs: switch global kernfs_idr_lock " alexjlzheng
2025-04-12  6:12   ` Greg KH
2025-04-12 11:50     ` alexjlzheng
2025-04-13  7:51       ` Greg KH
2025-04-14  3:20         ` Jinliang Zheng
2025-04-15 15:16           ` Greg KH
2025-04-15 15:44             ` Jinliang Zheng
2025-04-14 17:09   ` Tejun Heo
2025-04-15  6:28     ` Jinliang Zheng
2025-04-11 18:31 ` [PATCH kernfs 2/3] kernfs: switch global kernfs_rename_lock " alexjlzheng
2025-04-14 17:26   ` Tejun Heo
2025-04-11 18:31 ` [PATCH kernfs 3/3] kernfs: switch global kernfs_pr_cont_lock " alexjlzheng
2025-04-14 17:27   ` Tejun Heo
2025-04-15  6:37     ` Jinliang Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox