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)
commit12bcbd40fd931472c7fc9cf3bfe66799ece93ed8
tree236e5be9301ff30f8752024d02cf985b4c455090
parenta2694e51f60c5a18c7e43d1a9feaa46d7f153e65
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