[Qemu-devel] Re: [PATCH]hw/xen_disk: ioreq not finished on error

2011-03-28 Thread Feiran Zheng
Sorry for the confusing, I'll clean up it. On Tue, Mar 29, 2011 at 2:16 AM, Stefano Stabellini wrote: > On Mon, 28 Mar 2011, Feiran Zheng wrote: >> On Mon, Mar 28, 2011 at 9:42 PM, Stefano Stabellini >> wrote: >> > On Sun, 27 Mar 2011, Feiran Zheng wrote: >> >> Bug fix: routines 'ioreq_runio_qem

[Qemu-devel] Re: [PATCH]hw/xen_disk: ioreq not finished on error

2011-03-28 Thread Stefano Stabellini
On Mon, 28 Mar 2011, Feiran Zheng wrote: > On Mon, Mar 28, 2011 at 9:42 PM, Stefano Stabellini > wrote: > > On Sun, 27 Mar 2011, Feiran Zheng wrote: > >> 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

[Qemu-devel] Re: [PATCH]hw/xen_disk: ioreq not finished on error

2011-03-28 Thread Feiran Zheng
On Mon, Mar 28, 2011 at 9:42 PM, Stefano Stabellini wrote: > On Sun, 27 Mar 2011, Feiran Zheng wrote: >> 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. >> >> Sig

[Qemu-devel] Re: [PATCH]hw/xen_disk: ioreq not finished on error

2011-03-28 Thread Stefano Stabellini
On Sun, 27 Mar 2011, Feiran Zheng wrote: > 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 > --- > hw/xen_disk.c | 22 ++