commit | 35ecde26018207fe723bec6efbd340db6e9c2d53 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Tue Apr 16 17:49:42 2013 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Mon Aug 19 15:45:35 2013 +0200 |
tree | be703d3f54a71dcfeb5787fff2055e9a19e6653d | |
parent | 24d1a6d9d5f5b3da868724dd3c6f56893e0693da [diff] |
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>