* [PATCH] NFSv4: Ignore NFS4ERR_OLD_STATEID in nfs41_check_open_stateid()
@ 2017-08-09 1:39 Trond Myklebust
0 siblings, 0 replies; only message in thread
From: Trond Myklebust @ 2017-08-09 1:39 UTC (permalink / raw)
To: Anna Schumaker, linux-nfs
If the call to TEST_STATEID returns NFS4ERR_OLD_STATEID, then it just
means we raced with other calls to OPEN.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
---
fs/nfs/nfs4proc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 15e91f003adc..1c73aa92b079 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2553,9 +2553,8 @@ static int nfs41_check_open_stateid(struct nfs4_state *state)
clear_bit(NFS_O_RDWR_STATE, &state->flags);
clear_bit(NFS_OPEN_STATE, &state->flags);
stateid->type = NFS4_INVALID_STATEID_TYPE;
- }
- if (status != NFS_OK)
return status;
+ }
if (nfs_open_stateid_recover_openmode(state))
return -NFS4ERR_OPENMODE;
return NFS_OK;
--
2.13.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-09 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 1:39 [PATCH] NFSv4: Ignore NFS4ERR_OLD_STATEID in nfs41_check_open_stateid() Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).