]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: fix race in TestLibRBD.ConcurentOperations 38449/head
authorMykola Golub <mgolub@suse.com>
Fri, 4 Dec 2020 17:02:17 +0000 (17:02 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 4 Dec 2020 17:02:17 +0000 (17:02 +0000)
commit3f8c63175d9364b98747d7b21f92599cff0d5bb9
tree48d142f570bee8c82258d0d8c58498a5d0c1927a
parentf957e29b10672b63bdf827ea18d73ca99cffa664
test/librbd: fix race in TestLibRBD.ConcurentOperations

It was possible that before image1 was closed, both quiesce2 and
quiesce3 requests were received and the test got stuck on
create_snap1.join() waiting for the image1 to be closed, while
the close was waiting for quiesce3 to be completed.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/librbd/test_librbd.cc