]> git.apps.os.sepia.ceph.com Git - ceph.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, 3 Oct 2018 15:08:20 +0000 (11:08 -0400)
commit1a2709c35a12f458f236ea0e0d936fd4fdedf5cc
treee8daf22d2e4a51ce86a288cc6969b132b1fab61e
parent86ac0400b65d37be107447add5138ada5632c66a
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>
(cherry picked from commit 60064f68f5dd2bbf5fbab95564fa522335091f4a)
src/librbd/ManagedLock.cc
src/test/librbd/test_mock_ManagedLock.cc