]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: unlock image if journal error encountered during lock 9007/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 May 2016 14:15:08 +0000 (10:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 9 May 2016 18:19:03 +0000 (14:19 -0400)
commit0e95ee4bd16f4d54d1da476b51fd0fd0829d69ed
tree446b7a0e2416109a642001463502baf833cb084d
parent030883f41d3d2d8f297b3d3f6e7c7fa5a06ea4c0
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>
(cherry picked from commit a11f5e8e55fc448ed60616cbf66a3ea7db2247b9)
src/librbd/exclusive_lock/AcquireRequest.cc
src/librbd/exclusive_lock/AcquireRequest.h
src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc