commit | 8a805c222caa0e20bf11d2267f726d0bb5917d94 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Tue Dec 04 16:12:19 2012 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Dec 11 11:04:25 2012 +0100 |
tree | 48f762363a9dfc1b3a0f0e6eb6b77e00e110f138 | |
parent | 9fe3781f09f94f3ce76e52899bcdeb0d5164dbb1 [diff] |
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>