]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: unlock image if journal error encountered during lock 8910/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 May 2016 14:15:08 +0000 (10:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 3 May 2016 14:15:08 +0000 (10:15 -0400)
commita11f5e8e55fc448ed60616cbf66a3ea7db2247b9
tree9c14647da58c8a4534cb73689b668de8c08bbcaf
parentfe20133543119082f6a994811a1be5d53955faec
librbd: unlock image if journal error encountered during lock

Explicitly unlock to prevent a client from accidentally blacklisting
itself when retrying the lock.

Fixes: http://tracker.ceph.com/issues/15709
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/exclusive_lock/AcquireRequest.cc
src/librbd/exclusive_lock/AcquireRequest.h
src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc