Skip to content
Snippets Groups Projects
Commit 8b2d42d2 authored by Stefan Hajnoczi's avatar Stefan Hajnoczi
Browse files

aio-win32: replace incorrect AioHandler->opaque usage with ->e


The AioHandler->opaque field does not exist in aio-win32.c.  The code
that uses it was incorrectly copied from aio-posix.c.  For Windows we
can use AioHandler->e to match against AioContext->notifier.

This patch fixes the Windows build for aio-win32.o.

Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 91c68f14
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ bool aio_poll(AioContext *ctx, bool blocking)
node->io_notify(node->e);
/* aio_notify() does not count as progress */
if (node->opaque != &ctx->notifier) {
if (node->e != &ctx->notifier) {
progress = true;
}
}
......@@ -195,7 +195,7 @@ bool aio_poll(AioContext *ctx, bool blocking)
node->io_notify(node->e);
/* aio_notify() does not count as progress */
if (node->opaque != &ctx->notifier) {
if (node->e != &ctx->notifier) {
progress = true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment