|
| From: | Alex Bligh |
| Subject: | Re: [Qemu-devel] [RFC 6/8] timer: run timers on aio_poll |
| Date: | Sun, 21 Jul 2013 10:55:26 +0100 |
--On 21 July 2013 16:43:03 +0800 Liu Ping Fan <address@hidden> wrote:
diff --git a/aio-posix.c b/aio-posix.c
index b68eccd..29c2769 100644
--- a/aio-posix.c
+++ b/aio-posix.c
@@ -191,6 +191,8 @@ bool aio_poll(AioContext *ctx, bool blocking)
progress = true;
}
+ qemu_run_all_timers();
+
if (progress && !blocking) {
return true;
}
I am told (by Stefan H) this approach is unsafe as existing timers may not expect to be run within aio_poll. Also, I suspect you need to change the value of progress if timers run so bdrv draining terminates properly. -- Alex Bligh
| [Prev in Thread] | Current Thread | [Next in Thread] |