/* xprt_update_rtt - update an RPC client's RTT state after receiving a reply @task: RPC request that recently completed  */
void xprt_update_rtt(struct rpc_task *task)
/* xprt_update_rtt - update an RPC client's RTT state after receiving a reply @task: RPC request that recently completed  */
void xprt_update_rtt(struct rpc_task *task)
{
	struct rpc_rqst *req = task->tk_rqstp;
	struct rpc_rtt *rtt = task->tk_client->cl_rtt;
	unsigned timer = task->tk_msg.rpc_proc->p_timer;
	if (timer) {
		if (req->rq_ntrans == 1)
			rpc_update_rtt(rtt, timer,
					(long)jiffies - req->rq_xtime);
		rpc_set_timeo(rtt, timer, req->rq_ntrans - 1);
	}
}