OSDN Git Service

test-thread-pool: be more reliable
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Mar 2019 18:20:07 +0000 (19:20 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:00 +0000 (14:03 +0200)
commitaa0d7ed658f6afbdbcf4ceb8613b3c2cf5fbc7c4
tree56d9693250306121fbcc30fe56a259ed1ae37351
parentad88e4252f09c2956b99c90de39e95bab2e8e7af
test-thread-pool: be more reliable

There is a rare race between the atomic_cmpxchg and
bdrv_aio_cancel/bdrv_aio_cancel_async invocations.  Detect it, the
only sensible we can do about it is to exit long_cb immediately.

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