Re: [RFC PATCH 4/5] child_job_drained_poll: override polling condition only when in home thread

2022-03-02 Thread Stefan Hajnoczi
On Tue, Mar 01, 2022 at 09:21:12AM -0500, Emanuele Giuseppe Esposito wrote: > drv->drained_poll() is only implemented in mirror, and allows > it to drain from the coroutine. The mirror implementation uses > in_drain flag to recognize when it is draining from coroutine, > and consequently avoid dead

[RFC PATCH 4/5] child_job_drained_poll: override polling condition only when in home thread

2022-03-01 Thread Emanuele Giuseppe Esposito
drv->drained_poll() is only implemented in mirror, and allows it to drain from the coroutine. The mirror implementation uses in_drain flag to recognize when it is draining from coroutine, and consequently avoid deadlocking (wait the poll condition in child_job_drained_poll to wait for itself). The