]> git.ipfire.org Git - thirdparty/linux.git/commit
nfsd: allow DELEGRETURN on directories
authorJeff Layton <jlayton@kernel.org>
Tue, 11 Nov 2025 14:12:56 +0000 (09:12 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 08:38:37 +0000 (09:38 +0100)
commit80c8afddc8b17bf9b6cfe3af0d0b41b42f308961
tree0ebac538bd1b9bedc118b72807465c51dbc5070e
parent544a0ee152f0591dc689927007306fb9f09a175f
nfsd: allow DELEGRETURN on directories

As Trond pointed out: "...provided that the presented stateid is
actually valid, it is also sufficient to uniquely identify the file to
which it is associated (see RFC8881 Section 8.2.4), so the filehandle
should be considered mostly irrelevant for operations like DELEGRETURN."

Don't ask fh_verify to filter on file type.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251111-dir-deleg-ro-v6-15-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nfsd/nfs4state.c