]> git.proxmox.com Git - qemu.git/commit
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)
commitf1b5286803ee66f73034f1f5e0e1cf14f4415f94
tree9a47d0fc8e4ffbe91edc1e32ad5532e4fffa12c7
parentbc6694d43a68baa864dba7742354a379a3347f33
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