]> Git Repo - qemu.git/commit
tests: avoid qemu_aio_flush() in test-thread-pool.c
authorStefan Hajnoczi <[email protected]>
Tue, 4 Dec 2012 15:12:19 +0000 (16:12 +0100)
committerKevin Wolf <[email protected]>
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 <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/test-thread-pool.c
This page took 0.025027 seconds and 4 git commands to generate.