]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: assume lock is unlocked if blacklisted or object deleted
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Aug 2018 19:12:27 +0000 (15:12 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Sep 2018 18:52:48 +0000 (14:52 -0400)
commit60064f68f5dd2bbf5fbab95564fa522335091f4a
treec88c9ac6b5cf74f909d449b2edd1f2f0597f47a1
parent9ea94f284061849e452dd61c8f89ecca18642b0d
librbd: assume lock is unlocked if blacklisted or object deleted

This will ensure that it's possible to potentially re-acquire the
lock should the blacklist expire before the image is closed.

Fixes: http://tracker.ceph.com/issues/34534
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ManagedLock.cc
src/test/librbd/test_mock_ManagedLock.cc