diff options
author | Nolan <nolan@sigbus.net> | 2009-07-20 14:01:25 -0700 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-22 15:41:01 -0500 |
commit | 3f5cb28d9e458a29e1da1a9ba0a1499a57872d49 (patch) | |
tree | bc80503181b17815032e743de8cfca64f3995b3f | |
parent | dd500a9241f4b7ac12c737fe5f929a53bd965e47 (diff) | |
download | qemu-3f5cb28d9e458a29e1da1a9ba0a1499a57872d49.tar.gz |
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 <nolan <at> sigbus.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |