]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: separate break lock logic into standalone state machine
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Dec 2016 20:00:23 +0000 (15:00 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 6 Jan 2017 15:22:59 +0000 (10:22 -0500)
commit23f60fee86d1ff9b261fbb6411746a2a9479cf19
tree5602f2b6d6399c2bca053a7d8fe3bae5f8e66851
parent03533b912c59d5e433d0f006e1a063e014468ca5
librbd: separate break lock logic into standalone state machine

The current lockers are now queried before the lock is attempted to
prevent any possible race conditions when one or more clients attempt
to break the lock of a dead client.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/CMakeLists.txt
src/librbd/exclusive_lock/AcquireRequest.cc
src/librbd/exclusive_lock/AcquireRequest.h
src/librbd/exclusive_lock/BreakRequest.cc [new file with mode: 0644]
src/librbd/exclusive_lock/BreakRequest.h [new file with mode: 0644]
src/test/librbd/CMakeLists.txt
src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc
src/test/librbd/exclusive_lock/test_mock_BreakRequest.cc [new file with mode: 0644]