Re: [Qemu-devel] [PATCH] qemu-img: fix in-flight count for qemu-img bench

2016-12-06 Thread Kevin Wolf
Am 06.12.2016 um 12:08 hat Paolo Bonzini geschrieben: > With aio=native (qemu-img bench -n) one or more requests can be completed > when a new request is submitted. This in turn can cause bench_cb to > recurse before b->in_flight is updated. The blk_aio_pwritev coroutines > are never freed, and q

[Qemu-devel] [PATCH] qemu-img: fix in-flight count for qemu-img bench

2016-12-06 Thread Paolo Bonzini
With aio=native (qemu-img bench -n) one or more requests can be completed when a new request is submitted. This in turn can cause bench_cb to recurse before b->in_flight is updated. The blk_aio_pwritev coroutines are never freed, and qemu-img aborts. Signed-off-by: Paolo Bonzini --- qemu-img.c