scsi-disk: Fix immediate failure of bdrv_aio_*
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Oct 2010 11:15:27 +0000 (13:15 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 4 Nov 2010 12:54:37 +0000 (13:54 +0100)
commitaa61becea069bafddf2e3fd05400f59591dbd925
tree8a639706b8571ddff3447b06c656a957ef3e45f3
parent1c039deb930e9b4bb63fae92dec152fbb195395a
scsi-disk: Fix immediate failure of bdrv_aio_*

Fix scsi-disk to use the usual completion paths that involve rerror/werror
handling instead of directly completing the requests in cases where
bdrv_aio_readv/writev returns NULL.

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