]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: exclusive lock image IO dispatch layer
authorJason Dillaman <dillaman@redhat.com>
Wed, 29 Apr 2020 23:17:12 +0000 (19:17 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 14 May 2020 15:56:45 +0000 (11:56 -0400)
commit43b5c480ee8ea38f67d18c917853f70c1b226d36
tree4b64d7b9dbafd7d8e15d9793ed62d0aed2a2e7f7
parentf5cef52512b28b82e6af5f268bebb2b7151db073
librbd: exclusive lock image IO dispatch layer

This layer will handle acquiring the exclusive lock if required upon
incoming IO requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
13 files changed:
src/librbd/CMakeLists.txt
src/librbd/ExclusiveLock.cc
src/librbd/ExclusiveLock.h
src/librbd/exclusive_lock/ImageDispatch.cc [new file with mode: 0644]
src/librbd/exclusive_lock/ImageDispatch.h [new file with mode: 0644]
src/librbd/exclusive_lock/PreReleaseRequest.cc
src/librbd/exclusive_lock/PreReleaseRequest.h
src/librbd/image/RefreshRequest.cc
src/test/librbd/exclusive_lock/test_mock_PreReleaseRequest.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/mock/MockExclusiveLock.h
src/test/librbd/mock/io/MockImageDispatch.h [new file with mode: 0644]
src/test/librbd/test_mock_ExclusiveLock.cc