]> git.ipfire.org Git - thirdparty/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 16:21:20 +0000 (10:21 -0600)
commit096109c8049f2821f57561f4b24d7f51c6d53ddd
treecc4e7c6731c25018014b54c283ff715d0047ec60
parent7ae1fcc88c189e6a803516f91d15c29893e56dd3
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>
(cherry picked from commit f1b5286803ee66f73034f1f5e0e1cf14f4415f94)
hw/virtio-blk.c