History | View | Annotate | Download (19.7 kB)
aio: Fix return value of aio_poll()
aio_poll() must return true if any work is still pending, even if itdidn't make progress, so that bdrv_drain_all() doesn't stop waiting tooearly. The possibility of stopping early occasionally lead to a failedassertion in bdrv_drain_all(), when some in-flight request was missed...
block: move include files to include/block/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests: use aio_poll() instead of aio_flush() in test-aio.c
There has been confusion between various aio wait and flush functions.It's time to get rid of qemu_aio_flush() but in the aio test cases wereally do want this low-level functionality.
Therefore declare a local wait_for_aio() helper for the test cases....
tests: add AioContext unit tests
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>