On 11/06/21 13:13, Paolo Bonzini wrote:
The commit message doesn't specify, but in the buggy case, are we
talking about calling aio_co_wake() for a coroutine in the main context
specifically, right? Could we have a unit test for this scenario?
Yes, that's the scenario. I will try to write a unit test indeed.
Done ("tests: cover aio_co_enter from a worker thread without BQL
taken"). aio_co_enter() is the function that "does the work" for
aio_co_wake(). Eric, you may want to review and pick that up as well.
Paolo