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