virtio-blk: Fix restart after read error
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Jan 2010 12:12:35 +0000 (13:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jan 2010 15:53:01 +0000 (09:53 -0600)
commit731897503ba09f5396d4f8334a721ae144cfdaaa
tree9a47d0fc8e4ffbe91edc1e32ad5532e4fffa12c7
parente1a4ca2a89b5b2a8d703758f1c3bd48177b8348c
virtio-blk: Fix restart after read error

Current code assumes that only write requests are ever going to be restarted.
This is wrong since rerror=stop exists. Instead of directly starting writes,
use the same request processing as used for new requests.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-blk.c