Commit 2c56617d authored by Trond Myklebust's avatar Trond Myklebust

NFSv4: Fix the handling of the error NFS4ERR_OLD_STATEID

 Ensure that we retry the failed operation...
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d530838b
...@@ -2595,12 +2595,10 @@ int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct ...@@ -2595,12 +2595,10 @@ int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct
case -NFS4ERR_GRACE: case -NFS4ERR_GRACE:
case -NFS4ERR_DELAY: case -NFS4ERR_DELAY:
ret = nfs4_delay(server->client, &exception->timeout); ret = nfs4_delay(server->client, &exception->timeout);
if (ret == 0) if (ret != 0)
exception->retry = 1; break;
break;
case -NFS4ERR_OLD_STATEID: case -NFS4ERR_OLD_STATEID:
if (ret == 0) exception->retry = 1;
exception->retry = 1;
} }
/* We failed to handle the error */ /* We failed to handle the error */
return nfs4_map_errors(ret); return nfs4_map_errors(ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment