block: simplify failure handling for bdrv_aio_multiwrite
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Nov 2011 16:50:50 +0000 (17:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2011 11:40:07 +0000 (12:40 +0100)
commitdf9309fb432f3fc9f66f4a567f70970d4e46010a
tree27f8bd915d66286be886bf97dc2a4a04a66e7627
parentad54ae80c73f486cf39b4b38a04b76dd971cdbf6
block: simplify failure handling for bdrv_aio_multiwrite

Now that early failure of bdrv_aio_writev is not possible anymore,
mcb->num_requests can be set before the loop starts.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c