]> git.ipfire.org Git - thirdparty/qemu.git/commit
aio-posix: Adjust polling time also for new handlers
authorKevin Wolf <kwolf@redhat.com>
Tue, 11 Mar 2025 14:19:12 +0000 (15:19 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Mar 2025 16:57:23 +0000 (17:57 +0100)
commitf76d3bee754a2f8d73373d5959dc983169a93eee
tree60b9cdc2ec845c74f7cda6d219097bdecd3d8d7a
parentee416407b3c0f45253779e98404acb41231a9279
aio-posix: Adjust polling time also for new handlers

aio_dispatch_handler() adds handlers to ctx->poll_aio_handlers if
polling should be enabled. If we call adjust_polling_time() for all
polling handlers before this, new polling handlers are still left at
poll->ns = 0 and polling is only actually enabled after the next event.
Move the adjust_polling_time() call after aio_dispatch_handler().

This fixes test-nested-aio-poll, which expects that polling becomes
effective the first time around.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250311141912.135657-1-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
util/aio-posix.c