hw/xen_disk: ioreq not finished on error
authorFeiran Zheng <famcool@gmail.com>
Tue, 29 Mar 2011 01:00:15 +0000 (09:00 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 7 Apr 2011 11:51:47 +0000 (13:51 +0200)
commitf6ec953ca329d4509e5a1a1ff051365fccdbb6b7
treebc11ca0aeba7ae7717d57551db33216987950ef4
parent3b8e6a2db1946b5f21e69fde31b39f43367f1928
hw/xen_disk: ioreq not finished on error

Bug fix: routines 'ioreq_runio_qemu_sync' and 'ioreq_runio_qemu_aio'
won't call 'ioreq_unmap' or 'ioreq_finish' on errors, leaving ioreq in
the blkdev->inflight list and a leak.

Signed-off-by: Feiran Zheng <famcool@gmail.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/xen_disk.c