diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-04-26 04:31:28 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-26 04:31:28 -0400 |
commit | ef2e58ea6b9931c3a4816c66593da49bb20e3b24 (patch) | |
tree | ce7432add3becbe78de4ea06425cd2d9e91f4ada /net/sunrpc/clnt.c | |
parent | 06d63cc51d47f572009138a7f3ac34d95773405d (diff) | |
parent | de46c33745f5e2ad594c72f2cf5f490861b16ce1 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 6d7221fe990a..396cdbe249d1 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -1046,6 +1046,8 @@ call_status(struct rpc_task *task) | |||
1046 | rpc_delay(task, 3*HZ); | 1046 | rpc_delay(task, 3*HZ); |
1047 | case -ETIMEDOUT: | 1047 | case -ETIMEDOUT: |
1048 | task->tk_action = call_timeout; | 1048 | task->tk_action = call_timeout; |
1049 | if (task->tk_client->cl_discrtry) | ||
1050 | xprt_disconnect(task->tk_xprt); | ||
1049 | break; | 1051 | break; |
1050 | case -ECONNREFUSED: | 1052 | case -ECONNREFUSED: |
1051 | case -ENOTCONN: | 1053 | case -ENOTCONN: |
@@ -1169,6 +1171,8 @@ call_decode(struct rpc_task *task) | |||
1169 | out_retry: | 1171 | out_retry: |
1170 | req->rq_received = req->rq_private_buf.len = 0; | 1172 | req->rq_received = req->rq_private_buf.len = 0; |
1171 | task->tk_status = 0; | 1173 | task->tk_status = 0; |
1174 | if (task->tk_client->cl_discrtry) | ||
1175 | xprt_disconnect(task->tk_xprt); | ||
1172 | } | 1176 | } |
1173 | 1177 | ||
1174 | /* | 1178 | /* |