Commit 49013e91 authored by Trond Myklebust's avatar Trond Myklebust

Fix clnt.c to skip re-encoding an RPC call in the case when

we're writing over TCP and have done a partial send.
parent ca8832ea
...@@ -654,7 +654,8 @@ call_transmit(struct rpc_task *task) ...@@ -654,7 +654,8 @@ call_transmit(struct rpc_task *task)
if (task->tk_status < 0) if (task->tk_status < 0)
return; return;
/* Encode here so that rpcsec_gss can use correct sequence number. */ /* Encode here so that rpcsec_gss can use correct sequence number. */
call_encode(task); if (!task->tk_rqstp->rq_bytes_sent)
call_encode(task);
if (task->tk_status < 0) if (task->tk_status < 0)
return; return;
xprt_transmit(task); xprt_transmit(task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment