• P
    qemu-nbd: introduce nbd_do_send_reply · 22045592
    Paolo Bonzini 提交于
    Group the sending of a reply and the associated data into a new function.
    Without corking, the caller would be forced to leave 12 free bytes at the
    beginning of the data pointer.  Not too ugly, but still ugly. :)
    
    Using nbd_do_send_reply everywhere will help when the routine will set up
    the write handler that re-enters the send coroutine.
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    22045592
nbd.c 19.0 KB