scsi-disk: Switch to byte-based aio block access
authorEric Blake <eblake@redhat.com>
Fri, 6 May 2016 16:26:32 +0000 (10:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:09 +0000 (15:22 +0200)
commit03c90063ccf5fd18b01448a8b23923769ab2ee21
treec1a13eee77c82fa0bb2df46e27ae9bb6c912e6c7
parentd4f510eb3f56d30dd1312fe902138c430db2b361
scsi-disk: Switch to byte-based aio block access

Sector-based blk_aio_readv() and blk_aio_writev() should die; switch
to byte-based blk_aio_preadv() and blk_aio_pwritev() instead.

As part of the cleanup, scsi_init_iovec() no longer needs to return
a value, and reword a comment.

[ kwolf: Fix read accounting change ]

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/scsi-disk.c