virtio-blk: simplify multiwrite calling conventions
commitc20fd872257fb9abd2ce99741937c0f65aa162b7
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jun 2010 16:26:07 +0000 (8 18:26 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jun 2010 20:46:28 +0000 (14 15:46 -0500)
tree2c066d31397ea6fbd2c4024c9e30204903c5673d
parent7e608e8903a39157c28ced12b2a061eafa43c905
virtio-blk: simplify multiwrite calling conventions

Pass the MultiReqBuffer structure down all the way to the I/O submission
instead of takin it apart.  Also mark num_writes unsigned as it can't
go negative, and take the check for any pending I/O requests into the
submission function.  Last but not least rename do_multiwrite to
virtio_submit_multiwrite to fit the general naming scheme and make clear
what it does.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-blk.c