Skip to content
Snippets Groups Projects
Commit 0dd99a1e authored by Nolan's avatar Nolan Committed by Glauber Costa
Browse files

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: default avatarAnthony Liguori <aliguori@us.ibm.com>
Signed-off-by: default avatarGlauber Costa <glommer@redhat.com>
parent 07fdfe83
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ void qemu_aio_flush(void) ...@@ -112,7 +112,7 @@ void qemu_aio_flush(void)
LIST_FOREACH(node, &aio_handlers, node) { LIST_FOREACH(node, &aio_handlers, node) {
ret |= node->io_flush(node->opaque); ret |= node->io_flush(node->opaque);
} }
} while (ret > 0); } while (qemu_bh_poll() || ret > 0);
} }
void qemu_aio_wait(void) void qemu_aio_wait(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment