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