Re: [PATCH 0/3] kernfs: do less work under the kernfs_rwsem write lock
From: Christian Brauner
Date: Fri Sep 25 2026 - 11:14:04 EST
On Sat, 12 Sep 2026 19:14:50 -0700, Shakeel Butt wrote:
> kernfs: do less work under the kernfs_rwsem write lock
>
> kernfs_rwsem is per kernfs root, so sysfs and cgroupfs have one each for
> the whole machine, and every create, remove and rename takes it for
> writing. Whatever a writer does while holding it, everyone else waits
> for. These three patches take work out of that section.
>
> [...]
Applied to the vfs-7.4.kernfs branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.kernfs branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.kernfs
[1/3] kernfs: activate a new node without dropping kernfs_rwsem
https://git.kernel.org/vfs/vfs/c/4424f06120fd
[2/3] kernfs: allocate the new name outside kernfs_rwsem
https://git.kernel.org/vfs/vfs/c/8b64f32fee95
[3/3] kernfs: free the old name outside kernfs_rwsem
https://git.kernel.org/vfs/vfs/c/09452e5114bd