Re: [PATCH 0/6] vfs: properly deny directory leases on filesystems with special lease handling

Christian Brauner
2026-01-12T09:55:29Z

On Wed, 07 Jan 2026 09:20:08 -0500, Jeff Layton wrote:
> Filesystems currently have to set the ->setlease() method explicitly in
> order to deny attempts to set a lease or delegation. With the advent of
> directory delegations, we now need to set ->setlease on the directory
> file_operations for several filesystems to simple_nosetlease() to ensure
> this.
>
> This patchset does that. There should be no noticeable change in
> behavior, other than fixing the support detection in xfstests, allowing
> lease/delegation tests to be properly skipped on these filesystems.
>
> [...]

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

[1/6] nfs: properly disallow delegation requests on directories
https://git.kernel.org/vfs/vfs/c/10dcd5110678
[2/6] smb/client: properly disallow delegations on directories
https://git.kernel.org/vfs/vfs/c/b9a9be4d3557
[3/6] 9p: don't allow delegations to be set on directories
https://git.kernel.org/vfs/vfs/c/5d65a70bd043
[4/6] gfs2: don't allow delegations to be set on directories
https://git.kernel.org/vfs/vfs/c/ce946c4fb98c
[5/6] ceph: don't allow delegations to be set on directories
https://git.kernel.org/vfs/vfs/c/ffb321045b0f
[6/6] vboxsf: don't allow delegations to be set on directories