From: Nolan Date: Mon, 20 Jul 2009 21:01:25 +0000 (-0700) Subject: Handle BH's queued by AIO completions in qemu_aio_flush() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dd99a1e37baf1964455df4ab5dc51a91bfd3b99;p=thirdparty%2Fqemu.git 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 Signed-off-by: Glauber Costa --- 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)