[2/2] SUNRPC: Micro-optimisation to avoid call_bind+call_commit
diff mbox series

Message ID 20190305013015.30109-2-trond.myklebust@hammerspace.com
State New
Headers show
Series
  • [1/2] SUNRPC: Prevent thundering herd when the socket is not connected
Related show

Commit Message

Trond Myklebust March 5, 2019, 1:30 a.m. UTC
Most tasks should not have to deal with disconnected or unbound
socket states, so let's move them out of the common state machine
path.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
---
 net/sunrpc/clnt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e7ae75a045c9..8678a05192d3 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1807,7 +1807,7 @@  call_encode(struct rpc_task *task)
 		xprt_request_enqueue_receive(task);
 	xprt_request_enqueue_transmit(task);
 out:
-	task->tk_action = call_bind;
+	task->tk_action = call_transmit;
 }
 
 /*