On Fri, Jan 20, 2017 at 05:43:12PM +0100, Paolo Bonzini wrote: > + aio_co_wake(s->recv_coroutine[i]); > > - qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine); > + /* We're woken up by the recv_coroutine itself. */ > + qemu_coroutine_yield();
This relies on recv_coroutine() entering us only after we've yielded - otherwise QEMU will crash. The code and comments don't make it obvious why this is guaranteed to be safe.
signature.asc
Description: PGP signature