Re: [Qemu-devel] [PATCH 2/3] aio-posix: compute timeout before polling

2018-09-13 Thread Fam Zheng
On Wed, 09/12 19:10, Paolo Bonzini wrote: > This is a preparation for the next patch, and also a very small > optimization. Compute the timeout only once, before invoking > try_poll_mode, and adjust it in run_poll_handlers. The adjustment > is the polling time when polling fails, or zero

[Qemu-devel] [PATCH 2/3] aio-posix: compute timeout before polling

2018-09-12 Thread Paolo Bonzini
This is a preparation for the next patch, and also a very small optimization. Compute the timeout only once, before invoking try_poll_mode, and adjust it in run_poll_handlers. The adjustment is the polling time when polling fails, or zero (non-blocking) if polling succeeds. Fixes: