[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 41/42] aio-win32: replace incorrect AioHandler->opaqu
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 41/42] aio-win32: replace incorrect AioHandler->opaque usage with ->e |
Date: |
Thu, 22 Aug 2013 22:11:37 +0200 |
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: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
aio-win32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aio-win32.c b/aio-win32.c
index 721fc25..f9cfbb7 100644
--- a/aio-win32.c
+++ b/aio-win32.c
@@ -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;
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 24/42] aio / timers: Convert mainloop to use timeout, (continued)
- [Qemu-devel] [PULL 24/42] aio / timers: Convert mainloop to use timeout, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 25/42] aio / timers: On timer modification, qemu_notify or aio_notify, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 27/42] aio / timers: Use all timerlists in icount warp calculations, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 26/42] aio / timers: Introduce new API timer_new and friends, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 28/42] aio / timers: Add documentation and new format calls, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 36/42] aio / timers: Add test harness for AioContext timers, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 34/42] aio / timers: Convert rtc_clock to be a QEMUClockType, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 37/42] aio / timers: Add scripts/switch-timer-api, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 35/42] aio / timers: convert block_job_sleep_ns and co_sleep_ns to new API, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 42/42] win32-aio: drop win32_aio_flush_cb(), Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 41/42] aio-win32: replace incorrect AioHandler->opaque usage with ->e,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 32/42] aio / timers: Rearrange timer.h & make legacy functions call non-legacy, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 39/42] aio / timers: Remove legacy interface, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 40/42] aio / timers: remove dummy_io_handler_flush from tests/test-aio.c, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 33/42] aio / timers: Remove main_loop_timerlist, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 29/42] aio / timers: Remove alarm timers, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 31/42] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 30/42] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 38/42] aio / timers: Switch entire codebase to the new timer API, Stefan Hajnoczi, 2013/08/23