/* Van Jacobson congestion avoidance. Check if the congestion window overflowed. Put the task to sleep if this is the case.  */
static int __xprt_get_cong(struct rpc_xprt *, struct rpc_task *)
/* Van Jacobson congestion avoidance. Check if the congestion window overflowed. Put the task to sleep if this is the case.  */
static int __xprt_get_cong(struct rpc_xprt *, struct rpc_task *)
{
	struct rpc_rqst *req = task->tk_rqstp;
	if (req->rq_cong)
		return 1;
	dprintk("RPC: %5u xprt_cwnd_limited cong = %lu cwnd = %lu\n",
			task->tk_pid, xprt->cong, xprt->cwnd);
	if (RPCXPRT_CONGESTED(xprt))
		return 0;
	req->rq_cong = 1;
	xprt->cong += RPC_CWNDSCALE;
	return 1;
}