Hi,
I'm using this to get the aio context: n->aio_ctx = blk_get_aio_context(n->conf.blk); And then I acquire the aio context before doing block i/o: aio_context_acquire(n->aio_ctx); // block i/o aio_context_release(n->aio_ctx); However, I still see the error: Co-routine re-entered recursively Thanks, Shashank ________________________________ From: Kevin Wolf <kw...@redhat.com> Sent: Wednesday, October 11, 2017 8:07:06 AM To: Gugnani, Shashank Cc: qemu-devel@nongnu.org; qemu-bl...@nongnu.org Subject: Re: [Qemu-devel] Co-routine re-entered recursively [ Cc: qemu-block ] Am 09.10.2017 um 21:11 hat Gugnani, Shashank geschrieben: > Hi, > > I'm trying to modify the NVMe emulator in QEMU to use multiple threads. > > After making necessary changes, I see this error: 'Co-routine re-entered > recursively' > > Can anybody tell me the reason for this error? Is there anything I can do to > fix this issue? I suspect that you need to fix your locking. Are you sure you're holding the AioContext locks while you're making requests to the block layer? Kevin