virtio-blk: Fix error cases which ignored rerror/werror
commitbb45bcc8dec3863c31a07ac576f031ef4c961c93
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Jan 2010 12:12:36 +0000 (27 13:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jan 2010 16:21:29 +0000 (29 10:21 -0600)
tree3ecfc7389a0a88432965e69781aa04c41674d1c9
parent096109c8049f2821f57561f4b24d7f51c6d53ddd
virtio-blk: Fix error cases which ignored rerror/werror

If an I/O request fails right away instead of getting an error only in the
callback, we still need to consider rerror/werror.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 6c510fbf601fd8c6891b2f1d7165ceb82308a16f)
hw/virtio-blk.c