]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: acquire exclusive lock from peer when removing
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 19:50:59 +0000 (14:50 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 15:53:44 +0000 (10:53 -0500)
commit25c2ffe145becf6e32dd88682673f9761ee62fa8
tree04d18eb875eb9c64274d7d593581512b394ac502
parent5cd074be9cee4e359894ae434a7b8e89168a5104
librbd: acquire exclusive lock from peer when removing

This solves an issue with snapshot-based mirroring when the
rbd-mirror daemon is the exclusive lock owner. For other cases,
it still checks for watchers before proceeding.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/PreRemoveRequest.cc
src/test/librbd/image/test_mock_PreRemoveRequest.cc