]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librados/aio: wait for all completions properly
authorJosh Durgin <jdurgin@redhat.com>
Tue, 23 Oct 2018 20:06:02 +0000 (16:06 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 23 Oct 2018 20:08:54 +0000 (16:08 -0400)
commit75a776c0eb1abd3093cafd095326682175495a6b
treea55d76b2ea45df92144770e996f5d45e5a8ede68
parent9d79acdaacad0d61c8f260608cf13b92fd9cee5f
test/librados/aio: wait for all completions properly

Using global semaphores was error-prone and unnecessary. Unbalanced
usage resulted in a race like:

aio_write object foo -> dropped on full OSD
aio_read object foo -> -ENOENT

The intent of the test was to wait for the write to complete, so
do that explicitly for each aio test and remove the semaphores.

Fixes: http://tracker.ceph.com/issues/24587
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/test/librados/aio.cc