NFSv4: Fix the handling of the error NFS4ERR_OLD_STATEID

Ensure that we retry the failed operation...

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust 2005-11-04 15:33:50 -05:00
parent d530838bfa
commit 2c56617d76
1 changed files with 3 additions and 5 deletions

View File

@ -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);