[PATCH 0/2] kernfs: Remove reference counting for kernfs_open_node.

From: Imran Khan
Date: Thu Mar 24 2022 - 06:31:21 EST


This patchset contains changes that were suggested as part of review of [1].
I am sending these changes as a separate patchset because [1] focusses on
replacing some global locks with hashed ones while these changes are applicable
irrespective of whether we stick with global locks or endup using hashed locks
eventually and hence these changes can be reviewed independent of [1].

[1] https://lore.kernel.org/lkml/YjOpedPDj+3KCJjk@xxxxxxxxxxxxxxxxxxxxx/

Imran Khan (2):
kernfs: Remove reference counting for kernfs_open_node.
kernfs: make ->attr.open RCU protected.

fs/kernfs/file.c | 92 +++++++++++++++++-------------------------
include/linux/kernfs.h | 2 +-
2 files changed, 39 insertions(+), 55 deletions(-)


base-commit: dd315b5800612e6913343524aa9b993f9a8bb0cf
--
2.30.2