aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-09-24 12:00:27 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-01 18:22:11 -0400
commit8a19a0b6cb2e2216afd68ef2047f30260cc8a220 (patch)
treeae3c46e80fd5fcafc28c531d333b24e60de2e0e9 /net/sunrpc/clnt.c
parent90051ea774613ffc6b8aad3dc665c8505d6205a8 (diff)
SUNRPC: Add RPC task and client level options to disable the resend timeout
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index fa50e42aabd3..b58525009e40 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -772,6 +772,8 @@ void rpc_task_set_client(struct rpc_task *task, struct rpc_clnt *clnt)
772 atomic_inc(&clnt->cl_count); 772 atomic_inc(&clnt->cl_count);
773 if (clnt->cl_softrtry) 773 if (clnt->cl_softrtry)
774 task->tk_flags |= RPC_TASK_SOFT; 774 task->tk_flags |= RPC_TASK_SOFT;
775 if (clnt->cl_noretranstimeo)
776 task->tk_flags |= RPC_TASK_NO_RETRANS_TIMEOUT;
775 if (sk_memalloc_socks()) { 777 if (sk_memalloc_socks()) {
776 struct rpc_xprt *xprt; 778 struct rpc_xprt *xprt;
777 779
@@ -1898,7 +1900,8 @@ call_status(struct rpc_task *task)
1898 rpc_delay(task, 3*HZ); 1900 rpc_delay(task, 3*HZ);
1899 case -ETIMEDOUT: 1901 case -ETIMEDOUT:
1900 task->tk_action = call_timeout; 1902 task->tk_action = call_timeout;
1901 if (task->tk_client->cl_discrtry) 1903 if (!(task->tk_flags & RPC_TASK_NO_RETRANS_TIMEOUT)
1904 && task->tk_client->cl_discrtry)
1902 xprt_conditional_disconnect(req->rq_xprt, 1905 xprt_conditional_disconnect(req->rq_xprt,
1903 req->rq_connect_cookie); 1906 req->rq_connect_cookie);
1904 break; 1907 break;