summaryrefslogtreecommitdiff
path: root/aio-posix.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-04-16 17:49:42 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-08-19 15:45:35 +0200
commit35ecde26018207fe723bec6efbd340db6e9c2d53 (patch)
treebe703d3f54a71dcfeb5787fff2055e9a19e6653d /aio-posix.c
parent24d1a6d9d5f5b3da868724dd3c6f56893e0693da (diff)
downloadqemu-35ecde26018207fe723bec6efbd340db6e9c2d53.tar.gz
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 'aio-posix.c')
0 files changed, 0 insertions, 0 deletions