Skip to content

Commit c0ca0e5

Browse files
trondmypdamschuma-ntap
authored andcommitted
NFSv4: Ignore NFS4ERR_OLD_STATEID in nfs41_check_open_stateid()
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> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 1feb261 commit c0ca0e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2553,9 +2553,8 @@ static int nfs41_check_open_stateid(struct nfs4_state *state)
25532553
clear_bit(NFS_O_RDWR_STATE, &state->flags);
25542554
clear_bit(NFS_OPEN_STATE, &state->flags);
25552555
stateid->type = NFS4_INVALID_STATEID_TYPE;
2556-
}
2557-
if (status != NFS_OK)
25582556
return status;
2557+
}
25592558
if (nfs_open_stateid_recover_openmode(state))
25602559
return -NFS4ERR_OPENMODE;
25612560
return NFS_OK;

0 commit comments

Comments
 (0)