qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/12] Handle BH's queued by AIO completions in qemu


From: Glauber Costa
Subject: [Qemu-devel] [PATCH 02/12] Handle BH's queued by AIO completions in qemu_aio_flush()
Date: Wed, 26 Aug 2009 09:05:36 -0400

From: Nolan <address@hidden>

Without this, the call to qemu_aio_flush during migration doesn't
actually flush all in-flight SCSI IOs.

Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Glauber Costa <address@hidden>
---
 aio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aio.c b/aio.c
index dc9b85d..efc63fd 100644
--- a/aio.c
+++ b/aio.c
@@ -112,7 +112,7 @@ void qemu_aio_flush(void)
         LIST_FOREACH(node, &aio_handlers, node) {
             ret |= node->io_flush(node->opaque);
         }
-    } while (ret > 0);
+    } while (qemu_bh_poll() || ret > 0);
 }
 
 void qemu_aio_wait(void)
-- 
1.6.2.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]