Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175990
b: refs/heads/master
c: 7970886
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Labiaga authored and Trond Myklebust committed Dec 7, 2009
1 parent 3cf82c8 commit 00fdb78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bcfa49f6f931ce4097309ca8501d842a6f0ac860
refs/heads/master: 79708861189eb89dea6711bd0464b097b69e7c79
15 changes: 13 additions & 2 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3479,9 +3479,20 @@ static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata)
nfs4_sequence_done(data->res.server, &data->res.seq_res,
task->tk_status);

data->rpc_status = task->tk_status;
if (data->rpc_status == 0)
switch (task->tk_status) {
case -NFS4ERR_STALE_STATEID:
case -NFS4ERR_EXPIRED:
case 0:
renew_lease(data->res.server, data->timestamp);
break;
default:
if (nfs4_async_handle_error(task, data->res.server, NULL) ==
-EAGAIN) {
nfs_restart_rpc(task, data->res.server->nfs_client);
return;
}
}
data->rpc_status = task->tk_status;
}

static void nfs4_delegreturn_release(void *calldata)
Expand Down

0 comments on commit 00fdb78

Please sign in to comment.