qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Handle BH's queued by AIO completions in qemu_aio_flush()
@ 2009-07-20 21:01 Nolan
  0 siblings, 0 replies; only message in thread
From: Nolan @ 2009-07-20 21:01 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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>

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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-20 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20 21:01 [Qemu-devel] [PATCH] Handle BH's queued by AIO completions in qemu_aio_flush() Nolan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).