]> git-server-git.apps.pok.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>
Thu, 4 Oct 2018 11:58:02 +0000 (07:58 -0400)
commit867b8a0670f77ef95dd38dbc99421118d79e7281
tree6dc2f73f9de783d21ab55ad4d813908fb3551f93
parent7d9218ee9b02b899744364ac69c6b8bec47729db
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