diff options
-rw-r--r-- | fs/nfs/nfs4proc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1f4edfbb4a70..ca36d0d50b7d 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4988,11 +4988,17 @@ static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata) | |||
4988 | 4988 | ||
4989 | trace_nfs4_delegreturn_exit(&data->args, &data->res, task->tk_status); | 4989 | trace_nfs4_delegreturn_exit(&data->args, &data->res, task->tk_status); |
4990 | switch (task->tk_status) { | 4990 | switch (task->tk_status) { |
4991 | case -NFS4ERR_STALE_STATEID: | ||
4992 | case -NFS4ERR_EXPIRED: | ||
4993 | case 0: | 4991 | case 0: |
4994 | renew_lease(data->res.server, data->timestamp); | 4992 | renew_lease(data->res.server, data->timestamp); |
4995 | break; | 4993 | break; |
4994 | case -NFS4ERR_ADMIN_REVOKED: | ||
4995 | case -NFS4ERR_DELEG_REVOKED: | ||
4996 | case -NFS4ERR_BAD_STATEID: | ||
4997 | case -NFS4ERR_OLD_STATEID: | ||
4998 | case -NFS4ERR_STALE_STATEID: | ||
4999 | case -NFS4ERR_EXPIRED: | ||
5000 | task->tk_status = 0; | ||
5001 | break; | ||
4996 | default: | 5002 | default: |
4997 | if (nfs4_async_handle_error(task, data->res.server, NULL) == | 5003 | if (nfs4_async_handle_error(task, data->res.server, NULL) == |
4998 | -EAGAIN) { | 5004 | -EAGAIN) { |