]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSv4: retry GETATTR if GET_DIR_DELEGATION failed
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 10 Apr 2026 16:48:05 +0000 (12:48 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 13 Apr 2026 21:45:24 +0000 (14:45 -0700)
commit515af10044f1c0d6f4356fcfb313465f02f484e9
tree2d38cbfcb40484dd0b740daf1c1d04d724e05246
parent4fa7ab8d292b1d4271fad397d98ea440e474cd7f
NFSv4: retry GETATTR if GET_DIR_DELEGATION failed

Currently, getting a directory delegation is opportinistic and gets
added to an existing GETATTR that's trying to retrieve some needed
attributes. However, GET_DIRDELEGATION can fail and that currently
causes a GETATTR to fail and an error is propagated to the user.

Instead, the original GETATTR should be retried without requesting
a directory delegation. Also, now chosing to clear asking for
the direct delegation for this specific inode.

Fixes: 156b09482933 ("NFS: Request a directory delegation on ACCESS, CREATE, and UNLINK")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c