From 3f5cb28d9e458a29e1da1a9ba0a1499a57872d49 Mon Sep 17 00:00:00 2001 From: Nolan Date: Mon, 20 Jul 2009 14:01:25 -0700 Subject: [PATCH] Handle BH's queued by AIO completions in qemu_aio_flush() Without this, the call to qemu_aio_flush during migration doesn't actually flush all in-flight SCSI IOs. Signed-off-by: Nolan Leake sigbus.net> Signed-off-by: Anthony Liguori --- aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio.c b/aio.c index dc9b85d1677..efc63fd9a1f 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) -- 2.39.5