mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
bd83677612
commit
6e5d97d01d
1 changed files with 1 additions and 1 deletions
2
aio.c
2
aio.c
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue