aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-09-25 12:17:18 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-01 18:22:11 -0400
commit90051ea774613ffc6b8aad3dc665c8505d6205a8 (patch)
treef8c468017ad2ee07a13dc39320aab61c9953e802 /net/sunrpc/clnt.c
parentee071eff0f1afafa9917254a6e4ee19d28085f1d (diff)
SUNRPC: Clean up - convert xprt_prepare_transmit to return a bool
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 77479606a971..fa50e42aabd3 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1722,8 +1722,7 @@ call_transmit(struct rpc_task *task)
1722 task->tk_action = call_status; 1722 task->tk_action = call_status;
1723 if (task->tk_status < 0) 1723 if (task->tk_status < 0)
1724 return; 1724 return;
1725 task->tk_status = xprt_prepare_transmit(task); 1725 if (!xprt_prepare_transmit(task))
1726 if (task->tk_status != 0)
1727 return; 1726 return;
1728 task->tk_action = call_transmit_status; 1727 task->tk_action = call_transmit_status;
1729 /* Encode here so that rpcsec_gss can use correct sequence number. */ 1728 /* Encode here so that rpcsec_gss can use correct sequence number. */
@@ -1811,8 +1810,7 @@ call_bc_transmit(struct rpc_task *task)
1811{ 1810{
1812 struct rpc_rqst *req = task->tk_rqstp; 1811 struct rpc_rqst *req = task->tk_rqstp;
1813 1812
1814 task->tk_status = xprt_prepare_transmit(task); 1813 if (!xprt_prepare_transmit(task)) {
1815 if (task->tk_status == -EAGAIN) {
1816 /* 1814 /*
1817 * Could not reserve the transport. Try again after the 1815 * Could not reserve the transport. Try again after the
1818 * transport is released. 1816 * transport is released.