Skip to content

Commit

Permalink
NFSv4: Fix the handling of the error NFS4ERR_OLD_STATEID
Browse files Browse the repository at this point in the history
 Ensure that we retry the failed operation...

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Nov 4, 2005
1 parent d530838 commit 2c56617
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2595,12 +2595,10 @@ int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct
case -NFS4ERR_GRACE:
case -NFS4ERR_DELAY:
ret = nfs4_delay(server->client, &exception->timeout);
if (ret == 0)
exception->retry = 1;
break;
if (ret != 0)
break;
case -NFS4ERR_OLD_STATEID:
if (ret == 0)
exception->retry = 1;
exception->retry = 1;
}
/* We failed to handle the error */
return nfs4_map_errors(ret);
Expand Down

0 comments on commit 2c56617

Please sign in to comment.