Re: [Qemu-devel] [PATCH 02/16] block-backend: allow blk_prw from coroutine context

2017-01-18 Thread Stefan Hajnoczi
On Fri, Jan 13, 2017 at 02:17:17PM +0100, Paolo Bonzini wrote: > qcow2_create2 calls this. Do not run a nested event loop, as that > breaks when aio_co_wake tries to queue the coroutine on the co_queue_wakeup > list of the currently running one. > > Signed-off-by: Paolo Bonzini > --- > block/bl

[Qemu-devel] [PATCH 02/16] block-backend: allow blk_prw from coroutine context

2017-01-13 Thread Paolo Bonzini
qcow2_create2 calls this. Do not run a nested event loop, as that breaks when aio_co_wake tries to queue the coroutine on the co_queue_wakeup list of the currently running one. Signed-off-by: Paolo Bonzini --- block/block-backend.c | 12 1 file changed, 8 insertions(+), 4 deletions