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.maquefel.me/?a=commitdiff_plain;h=6e5d97d01d9da6f295f9888d4b34e29fd737861a;p=qemu.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 dc9b85d167..efc63fd9a1 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)