Re: [PATCH] aio-posix: fix io_uring with external events

2020-03-23 Thread Stefan Hajnoczi
On Thu, Mar 19, 2020 at 04:35:59PM +, Stefan Hajnoczi wrote: > When external event sources are disabled fdmon-io_uring falls back to > fdmon-poll. The ->need_wait() callback needs to watch for this so it > can return true when external event sources are disabled. > > It is also necessary to c

Re: [PATCH] aio-posix: fix io_uring with external events

2020-03-20 Thread Stefano Garzarella
On Thu, Mar 19, 2020 at 04:35:59PM +, Stefan Hajnoczi wrote: > When external event sources are disabled fdmon-io_uring falls back to > fdmon-poll. The ->need_wait() callback needs to watch for this so it > can return true when external event sources are disabled. > > It is also necessary to c

[PATCH] aio-posix: fix io_uring with external events

2020-03-19 Thread Stefan Hajnoczi
When external event sources are disabled fdmon-io_uring falls back to fdmon-poll. The ->need_wait() callback needs to watch for this so it can return true when external event sources are disabled. It is also necessary to call ->wait() when AioHandlers have changed because io_uring is asynchronous