Statistics
| Branch: | Revision:

root / tests / test-aio.c @ 8addacdd

History | View | Annotate | Download (19.7 kB)

# Date Author Comment
2ea9b58f 01/17/2013 11:51 am Kevin Wolf

aio: Fix return value of aio_poll()

aio_poll() must return true if any work is still pending, even if it
didn't make progress, so that bdrv_drain_all() doesn't stop waiting too
early. The possibility of stopping early occasionally lead to a failed
assertion in bdrv_drain_all(), when some in-flight request was missed...

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

9fe3781f 12/11/2012 12:04 pm Stefan Hajnoczi

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 we
really do want this low-level functionality.

Therefore declare a local wait_for_aio() helper for the test cases....

b2ea25d7 11/26/2012 05:37 pm Paolo Bonzini

tests: add AioContext unit tests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>