diff options
| author | Stefan Hajnoczi | 2013-04-16 17:49:42 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-08-19 15:45:35 +0200 |
| commit | 35ecde26018207fe723bec6efbd340db6e9c2d53 (patch) | |
| tree | be703d3f54a71dcfeb5787fff2055e9a19e6653d /include | |
| parent | tests: adjust test-aio to new aio_poll() semantics (diff) | |
| download | qemu-35ecde26018207fe723bec6efbd340db6e9c2d53.tar.gz qemu-35ecde26018207fe723bec6efbd340db6e9c2d53.tar.xz qemu-35ecde26018207fe723bec6efbd340db6e9c2d53.zip | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
