]> git.proxmox.com Git - qemu.git/commit
nbd: use TCP_CORK in nbd_co_send_request()
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 15 Apr 2013 14:14:47 +0000 (16:14 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Apr 2013 14:30:40 +0000 (16:30 +0200)
commit0fcece25c0b1b79b39d1dff5c2c55b88feae7eef
treea9e69dfb1110c5658b634c1e7b6a4b5fe06ef1c4
parent6760c47aa42ce30efdd12c132f73c8749c575995
nbd: use TCP_CORK in nbd_co_send_request()

Use TCP_CORK to defer packet transmission until both the header and the
payload have been written.

Suggested-by: Nick Thomas <nick@bytemark.co.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd.c