]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add additional granularity to lock states 7204/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 12 Jan 2016 18:00:34 +0000 (13:00 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 12 Jan 2016 18:00:34 +0000 (13:00 -0500)
commite59293d0cca21838b0c8c283ad9aabd4ea73dabf
tree37aae8fe3bb0d838fe7fd528e01aba3e6c88c758
parent94b7d231a6281ad2be962fbd55236ebea04868b9
librbd: add additional granularity to lock states

Allow all pre-release actions to see that the exclusive lock is
still owned and all post-acquire actions to see that the exclusive
lock is now owned.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ExclusiveLock.cc
src/librbd/ExclusiveLock.h
src/librbd/exclusive_lock/AcquireRequest.cc
src/librbd/exclusive_lock/AcquireRequest.h
src/librbd/exclusive_lock/ReleaseRequest.cc
src/librbd/exclusive_lock/ReleaseRequest.h
src/test/librbd/exclusive_lock/test_mock_AcquireRequest.cc
src/test/librbd/exclusive_lock/test_mock_ReleaseRequest.cc
src/test/librbd/test_mock_ExclusiveLock.cc