aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2020-08-06 14:18:00 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2020-08-13 13:26:12 +0100
commitc13be5a1bfcd6cafdf20072c75eaf3e5af35f2e6 (patch)
tree3015c79fe0f3a22a05557efacc64c09f1fb4d146 /util
parentd0ed6a69d399ae193959225cdeaa9382746c91cc (diff)
downloadqemu-c13be5a1bfcd6cafdf20072c75eaf3e5af35f2e6.zip
qemu-c13be5a1bfcd6cafdf20072c75eaf3e5af35f2e6.tar.gz
qemu-c13be5a1bfcd6cafdf20072c75eaf3e5af35f2e6.tar.bz2
async: rename event_notifier_dummy_cb/poll()
The event_notifier_*() prefix can be confused with the EventNotifier APIs that are also called event_notifier_*(). Rename the functions to aio_context_notifier_*() to make it clear that they relate to the AioContext::notifier field. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20200806131802.569478-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/async.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/async.c b/util/async.c
index 1319eee..d9f987e 100644
--- a/util/async.c
+++ b/util/async.c
@@ -445,12 +445,12 @@ static void aio_timerlist_notify(void *opaque, QEMUClockType type)
aio_notify(opaque);
}
-static void event_notifier_dummy_cb(EventNotifier *e)
+static void aio_context_notifier_dummy_cb(EventNotifier *e)
{
}
/* Returns true if aio_notify() was called (e.g. a BH was scheduled) */
-static bool event_notifier_poll(void *opaque)
+static bool aio_context_notifier_poll(void *opaque)
{
EventNotifier *e = opaque;
AioContext *ctx = container_of(e, AioContext, notifier);
@@ -508,8 +508,8 @@ AioContext *aio_context_new(Error **errp)
aio_set_event_notifier(ctx, &ctx->notifier,
false,
- event_notifier_dummy_cb,
- event_notifier_poll);
+ aio_context_notifier_dummy_cb,
+ aio_context_notifier_poll);
#ifdef CONFIG_LINUX_AIO
ctx->linux_aio = NULL;
#endif