From: Trond Myklebust Date: Mon, 1 Oct 2007 16:06:44 +0000 (-0400) Subject: SUNRPC: Don't call xprt_release() if call_allocate fails X-Git-Tag: v2.6.24-rc1~1285^2~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e9c713f5c526a85893c6e0ab1d5d6c6f1ab479;p=linux-2.6 SUNRPC: Don't call xprt_release() if call_allocate fails It completely fouls up the RPC call statistics, and serves no useful purpose. Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index e9866fc93d..e6a2678ece 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -846,8 +846,7 @@ call_allocate(struct rpc_task *task) dprintk("RPC: %5u rpc_buffer allocation failed\n", task->tk_pid); if (RPC_IS_ASYNC(task) || !signalled()) { - xprt_release(task); - task->tk_action = call_reserve; + task->tk_action = call_allocate; rpc_delay(task, HZ>>4); return; }