]> git.proxmox.com Git - qemu.git/commit
tests: avoid qemu_aio_flush() in test-thread-pool.c
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 4 Dec 2012 15:12:19 +0000 (16:12 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 11 Dec 2012 10:04:25 +0000 (11:04 +0100)
commit8a805c222caa0e20bf11d2267f726d0bb5917d94
tree48f762363a9dfc1b3a0f0e6eb6b77e00e110f138
parent9fe3781f09f94f3ce76e52899bcdeb0d5164dbb1
tests: avoid qemu_aio_flush() in test-thread-pool.c

We need to eliminate calls to qemu_aio_flush() since the function is
being removed.  Most callers will use bdrv_drain_all() instead but
test-thread-pool.c is lower level.

Since the test uses the global AioContext we can loop on qemu_aio_wait()
to wait for aio and bh activity to complete.

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-thread-pool.c