« Previous | Next » 

Revision 35ecde26

ID35ecde26018207fe723bec6efbd340db6e9c2d53

Added by Stefan Hajnoczi over 10 years ago

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 <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences