Re: [PATCH] aio-posix: split poll check from ready handler

2021-12-02 Thread Stefano Garzarella
On Thu, Dec 02, 2021 at 01:09:23PM +, Stefan Hajnoczi wrote: On Wed, Dec 01, 2021 at 12:55:08PM +0100, Stefano Garzarella wrote: On Tue, Nov 30, 2021 at 11:20:57AM +, Stefan Hajnoczi wrote: > @@ -657,10 +704,7 @@ bool aio_poll(AioContext *ctx, bool blocking) > } > > progress |= a

Re: [PATCH] aio-posix: split poll check from ready handler

2021-12-02 Thread Stefan Hajnoczi
On Wed, Dec 01, 2021 at 12:55:08PM +0100, Stefano Garzarella wrote: > On Tue, Nov 30, 2021 at 11:20:57AM +, Stefan Hajnoczi wrote: > > @@ -657,10 +704,7 @@ bool aio_poll(AioContext *ctx, bool blocking) > > } > > > > progress |= aio_bh_poll(ctx); > > - > > -if (ret > 0) { > > -

Re: [PATCH] aio-posix: split poll check from ready handler

2021-12-01 Thread Stefano Garzarella
On Tue, Nov 30, 2021 at 11:20:57AM +, Stefan Hajnoczi wrote: Adaptive polling measures the execution time of the polling check plus handlers called when a polled event becomes ready. Handlers can take a significant amount of time, making it look like polling was running for a long time when i

[PATCH] aio-posix: split poll check from ready handler

2021-11-30 Thread Stefan Hajnoczi
Adaptive polling measures the execution time of the polling check plus handlers called when a polled event becomes ready. Handlers can take a significant amount of time, making it look like polling was running for a long time when in fact the event handler was running for a long time. For example,