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-Tag: v0.11.0-rc1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f5cb28d9e458a29e1da1a9ba0a1499a57872d49;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 --- 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)