Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-01-17 | aio: Fix return value of aio_poll() | Kevin Wolf | |
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 and the function didn't really drain all requests. In order to make that change, the return value as specified in the function comment must change for blocking = false; fortunately, the return value of blocking = false callers is only used in test cases, so this change shouldn't cause any trouble. Cc: qemu-stable@nongnu.org Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | |||
2012-12-19 | block: move include files to include/block/ | Paolo Bonzini | |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||
2012-12-11 | tests: use aio_poll() instead of aio_flush() in test-aio.c | Stefan Hajnoczi | |
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. Drop the aio_flush() test case. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> | |||
2012-11-26 | tests: add AioContext unit tests | Paolo Bonzini | |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> |