virtio-blk: Handle immediate flush failure properly
commit18a8d4214b861aff0caa5acfa921862d0be05bbb
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Oct 2010 11:10:15 +0000 (27 13:10 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 4 Nov 2010 12:54:37 +0000 (4 13:54 +0100)
tree0763617ff7398d34515fd0eb3789c56737d0ea5c
parentb2df7531f3adc4f0f65067b917cef8c66ba812c5
virtio-blk: Handle immediate flush failure properly

Fix virtio-blk to use the usual completion path that involves werror handling
instead of directly completing the request in cases where bdrv_aio_flush
returns NULL.

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