Re: [PATCH 0/6] kernfs: stop taking kernfs_iattr_rwsem for writing in mkdir/rmdir

From: Christian Brauner

Date: Fri Nov 20 2026 - 15:42:39 EST


On Wed, 18 Nov 2026 14:01:47 -0800, Shakeel Butt wrote:
> In the Meta fleet, cgroup mkdir and rmdir can stall cgroup operations
> on the whole host. They hold cgroup_mutex and kernfs_rwsem while they
> wait for kernfs_iattr_rwsem, which every path walk takes for reading,
> and they take it once or twice for every file of the cgroup. systemd,
> clone3() into a cgroup, BPF queries and the OOM daemon all wait behind
> them.
>
> [...]

Applied to the vfs-7.5.kernfs branch of the vfs/vfs.git tree.
Patches in the vfs-7.5.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.5.kernfs

[1/6] kernfs: report times and link count from the node in getattr
https://git.kernel.org/vfs/vfs/c/793fdbff8747
[2/6] kernfs: don't copy times and link count into the inode on refresh
https://git.kernel.org/vfs/vfs/c/98d1b8f98844
[3/6] kernfs: don't take kernfs_iattr_rwsem for the directory counters
https://git.kernel.org/vfs/vfs/c/77e95f59b821
[4/6] kernfs: don't take kernfs_iattr_rwsem to publish KERNFS_REMOVING
https://git.kernel.org/vfs/vfs/c/ead252b9937f
[5/6] kernfs: update a directory's times without kernfs_iattr_rwsem
https://git.kernel.org/vfs/vfs/c/992996523359
[6/6] kernfs: don't take kernfs_iattr_rwsem in __kernfs_remove()
https://git.kernel.org/vfs/vfs/c/af421cafc6ce