Patch 1 fixes a too-strict assertion that could fire when aio_poll is called in parallel with aio_set_fd_handler.
Patch 2 and 3 reinstate the performance benefits of polling, which were essentially disabled by commit 70232b5253 ("aio-posix: Don't count ctx->notifier as progress when polling", 2018-08-15). Please review carefully! :) Thanks, Paolo Paolo Bonzini (3): aio-posix: fix concurrent access to poll_disable_cnt aio-posix: compute timeout before polling aio-posix: do skip system call if ctx->notifier polling succeeds util/aio-posix.c | 88 +++++++++++++++++++++++++++-------------------- util/trace-events | 4 +-- 2 files changed, 53 insertions(+), 39 deletions(-) -- 2.17.1