Răsfoiți Sursa

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 <Trond.Myklebust@netapp.com>
Trond Myklebust 17 ani în urmă
părinte
comite
b6e9c713f5
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      net/sunrpc/clnt.c

+ 1 - 2
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);
 	dprintk("RPC: %5u rpc_buffer allocation failed\n", task->tk_pid);
 
 
 	if (RPC_IS_ASYNC(task) || !signalled()) {
 	if (RPC_IS_ASYNC(task) || !signalled()) {
-		xprt_release(task);
-		task->tk_action = call_reserve;
+		task->tk_action = call_allocate;
 		rpc_delay(task, HZ>>4);
 		rpc_delay(task, HZ>>4);
 		return;
 		return;
 	}
 	}