]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Retry once in nfsd_open on an -EOPENSTALE return
authorJeff Layton <jeff.layton@primarydata.com>
Sun, 19 Dec 2021 01:37:56 +0000 (20:37 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 8 Jan 2022 19:42:02 +0000 (14:42 -0500)
commitb51f4cc5c7da20adbebffecb223962feab72c0f4
tree236e5be9301ff30f8752024d02cf985b4c455090
parent846c10c391a08cbaaf6149eb953a3806a10c1dc0
nfsd: Retry once in nfsd_open on an -EOPENSTALE return

If we get back -EOPENSTALE from an NFSv4 open, then we either got some
unhandled error or the inode we got back was not the same as the one
associated with the dentry.

We really have no recourse in that situation other than to retry the
open, and if it fails to just return nfserr_stale back to the client.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c