]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests: adjust test-thread-pool to new aio_poll() semantics
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 16 Apr 2013 15:49:42 +0000 (17:49 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Aug 2013 13:45:35 +0000 (15:45 +0200)
commit35ecde26018207fe723bec6efbd340db6e9c2d53
treebe703d3f54a71dcfeb5787fff2055e9a19e6653d
parent24d1a6d9d5f5b3da868724dd3c6f56893e0693da
tests: adjust test-thread-pool to new aio_poll() semantics

aio_poll(ctx, true) will soon block when fd handlers have been set.
Previously aio_poll() would return early if all .io_flush() returned
false.  This means we need to check the equivalent of the .io_flush()
condition *before* calling aio_poll(ctx, true) to avoid deadlock.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-thread-pool.c