diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2025-03-07 23:16:32 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2025-03-13 17:57:23 +0100 |
| commit | 518db1013cb0384dc19134585f227dbb7bf65e39 (patch) | |
| tree | ae8d77d1955dd9edae19acb06ac9287badd34c74 /util/async.c | |
| parent | 2f3b6e61f692bade441230dd25c1c0f101bd2eef (diff) | |
| download | focaccia-qemu-518db1013cb0384dc19134585f227dbb7bf65e39.tar.gz focaccia-qemu-518db1013cb0384dc19134585f227dbb7bf65e39.zip | |
aio: Create AioPolledEvent
As a preparation for having multiple adaptive polling states per AioContext, move the 'ns' field into a separate struct. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20250307221634.71951-4-kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/async.c')
| -rw-r--r-- | util/async.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/async.c b/util/async.c index 47e3d35a26..fc8a78aa79 100644 --- a/util/async.c +++ b/util/async.c @@ -609,7 +609,8 @@ AioContext *aio_context_new(Error **errp) qemu_rec_mutex_init(&ctx->lock); timerlistgroup_init(&ctx->tlg, aio_timerlist_notify, ctx); - ctx->poll_ns = 0; + ctx->poll.ns = 0; + ctx->poll_max_ns = 0; ctx->poll_grow = 0; ctx->poll_shrink = 0; |