]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Nov 2018 11:53:24 +0000 (12:53 +0100)
commit5e29b367b5c0a6be0668dca4d364145712a14999
tree90d3309d9610624cc9772d8dd78a0fdbcefd4824
parentf6a1ee461c2cf2899316dd84572536f2cb3df14b
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>
(cherry picked from commit 75a776c0eb1abd3093cafd095326682175495a6b)
src/test/librados/aio.cc