]> git.proxmox.com Git - qemu.git/commit
tests: use aio_poll() instead of aio_flush() in test-aio.c
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 4 Dec 2012 15:12:18 +0000 (16:12 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 11 Dec 2012 10:04:25 +0000 (11:04 +0100)
commit9fe3781f09f94f3ce76e52899bcdeb0d5164dbb1
tree70ae54231c5d607f23e931613a6008351215b22f
parent1c97e303d4ea80a2691334b0febe87a50660f99d
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.
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>
tests/test-aio.c