Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206405
b: refs/heads/master
c: d05dd4e
h: refs/heads/master
i:
  206403: 601e630
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 4, 2010
1 parent 0f5f4d9 commit 7b19500
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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: f1f88fc7e818c6678c6799a2edb8f1aeccc124aa
refs/heads/master: d05dd4e98f0dd30ee933e05ac9363614c47df83a
7 changes: 3 additions & 4 deletions trunk/fs/nfs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,9 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len)
* Helper for restarting RPC calls in the possible presence of NFSv4.1
* sessions.
*/
static inline void nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
static inline int nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
{
if (nfs4_has_session(clp))
rpc_restart_call_prepare(task);
else
rpc_restart_call(task);
return rpc_restart_call_prepare(task);
return rpc_restart_call(task);
}
4 changes: 1 addition & 3 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,7 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
nfs41_sequence_free_slot(res);
return 1;
out_retry:
rpc_restart_call(task);
/* FIXME: rpc_restart_call() should be made to return success/fail */
if (task->tk_action == NULL)
if (!rpc_restart_call(task))
goto out;
rpc_delay(task, NFS4_POLL_RETRY_MAX);
return 0;
Expand Down

0 comments on commit 7b19500

Please sign in to comment.