Hi Kevin,
Thanks for your reply and detailed answer. It is true that
AIO_WAIT_WHILE() will temporarily unlock the new context as you said,
which is a point I overlooked. I'm using qemu version 5.2, and it works
fine after I cherry-pick commit c7040ff6 into it.
Thanks again!
Zhiyong
On
Am 12.07.2021 um 07:38 hat Zhiyong Ye geschrieben:
> When bdrv_set_aio_context_ignore() is called in the main loop to change
> the AioContext onto the IO thread, the bdrv_drain_invoke_entry() never
> gets to run and the IO thread hangs at co_schedule_bh_cb().
>
> This is because the AioContext is