virtio-blk: Respect werror option for flushes
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Oct 2010 11:17:30 +0000 (13:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commitf10bf34e80ee7fcb60fccdb6b22ee0e4160585b1
tree4199e1875c5ec45d9d925f4ee61c41a5216c5903
parentbd13a85c17fb7e420bb21198ca937e811394a1d6
virtio-blk: Respect werror option for flushes

The werror option now affects not only write requests, but also flush requests.
Previously, it was not possible to stop a VM on a failed flush.

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