NFSv4.1: Don't update sequence number if rpc_task is not sent
[linux-2.6-block.git] / net / sunrpc / xprt.c
index 9494c376735618c0f67fb3b9a0f88c70875062a4..ce5eb68a9664f6a93776304b304c80029efce84d 100644 (file)
@@ -906,6 +906,7 @@ void xprt_transmit(struct rpc_task *task)
        }
 
        dprintk("RPC: %5u xmit complete\n", task->tk_pid);
+       task->tk_flags |= RPC_TASK_SENT;
        spin_lock_bh(&xprt->transport_lock);
 
        xprt->ops->set_retrans_timeout(task);