diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-01 20:29:18 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-30 21:35:15 +0200 |
commit | dcbbeda836bc748e8fecd753b83d5b345ef8ec31 (patch) | |
tree | c79bd08b79f48f643ce75e3a7399e92bdb05cb11 /net/sunrpc/clnt.c | |
parent | SUNRPC: Simplify xprt_prepare_transmit() (diff) | |
download | linux-dcbbeda836bc748e8fecd753b83d5b345ef8ec31.tar.xz linux-dcbbeda836bc748e8fecd753b83d5b345ef8ec31.zip |
SUNRPC: Move RPC retransmission stat counter to xprt_transmit()
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 4ca23a6607ba..8dc3d33827c4 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -1962,8 +1962,6 @@ call_connect_status(struct rpc_task *task) static void call_transmit(struct rpc_task *task) { - int is_retrans = RPC_WAS_SENT(task); - dprint_status(task); task->tk_action = call_transmit_status; @@ -1973,10 +1971,6 @@ call_transmit(struct rpc_task *task) if (!xprt_prepare_transmit(task)) return; xprt_transmit(task); - if (task->tk_status < 0) - return; - if (is_retrans) - task->tk_client->cl_stats->rpcretrans++; } /* |