Skip to content

kernfs: Remove reference counting for kernfs_open_node.

Imran Khan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kernfs: Remove reference counting for kernfs_open_node.fs/kernfs/file.c+26 -211 reply
2/5kernfs: make ->attr.open RCU protected.fs/kernfs/file.c include/linux/kernfs.h+75 -477 replies
3/5kernfs: Change kernfs_notify_list to llist.fs/kernfs/file.c include/linux/kernfs.h+21 -281 reply
4/5kernfs: Introduce interface to access global kernfs_open_file_mutex.fs/kernfs/file.c+35 -151 reply
5/5kernfs: Replace global kernfs_open_file_mutex with hashed mutexes.fs/kernfs/file.c fs/kernfs/kernfs-internal.h fs/kernfs/mount.c +1 more+83 -142 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchTejun Heo
1/5A-b
2/5
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] kernfs: Remove reference counting for kernfs_open_node.

This patchset contains subset of patches (after addressing review comments) discussed at [1]. Since [1] is replacing multiple global locks and since each of these locks can be removed independently, it was decided that we should make these changes in parts i.e first get one set of optimizations integrated and then work on top of those further.

The patches in this change set introduce following changes:

PATCH-1: Remove reference counting for kernfs_open_node.

PATCH-2: Make kernfs_open_node->attr.open RCU protected.

PATCH-3: Change kernfs_notify_list to llist.

PATCH-4: Introduce interface to access kernfs_open_file_mutex.

PATCH-5: Replace global kernfs_open_file_mutex with hashed mutexes.

-------------------------------------------------------------------------

Imran Khan (5):
kernfs: Remove reference counting for kernfs_open_node.
kernfs: make ->attr.open RCU protected.
kernfs: Change kernfs_notify_list to llist.
kernfs: Introduce interface to access global kernfs_open_file_mutex.
kernfs: Replace global kernfs_open_file_mutex with hashed mutexes.

 fs/kernfs/file.c            | 247 ++++++++++++++++++++----------------
 fs/kernfs/kernfs-internal.h |   4 +
 fs/kernfs/mount.c           |  19 +++
 include/linux/kernfs.h      |  61 ++++++++-
 4 files changed, 223 insertions(+), 108 deletions(-)

base-commit: 088fb7eff3496e0f61fdf68bda89b81a4d0a4434

[1] https://lore.kernel.org/lkml/[email protected]/

Signature · 1 line
2.30.2