Re: [Qemu-block] [PATCH 12/12] aio-posix: Assert that aio_poll() is always called in home thread

2019-02-18 Thread Eric Blake
On 2/18/19 10:18 AM, Kevin Wolf wrote: > aio_poll() has an existing assertion that the function is only called > from the AioContext's home thread if blocking is allowed. > > This is not enough, some handlers make assumptions about the thread they > run in. Extend the assertion to non-blocking cal

[Qemu-block] [PATCH 12/12] aio-posix: Assert that aio_poll() is always called in home thread

2019-02-18 Thread Kevin Wolf
aio_poll() has an existing assertion that the function is only called from the AioContext's home thread if blocking is allowed. This is not enough, some handlers make assumptions about the thread they run in. Extend the assertion to non-blocking calls, too. Signed-off-by: Kevin Wolf --- util/ai