]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: skip flush from exclusive-lock dispatch layer on init/shutdown
authorJason Dillaman <dillaman@redhat.com>
Thu, 17 Sep 2020 18:52:30 +0000 (14:52 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 18 Sep 2020 03:52:31 +0000 (23:52 -0400)
commit437354ffcd884a94cefdd626c6dcd5f1b7488710
tree40d1d578fb3a0abc71355eead67ad67d0463c411
parentb0b4ba269808cb151c037b920b6c2ffe6c7725dd
librbd: skip flush from exclusive-lock dispatch layer on init/shutdown

If the exclusive-lock layer is being initialized/shut down at image
open/close, there is no IO flowing so there is no need to flush.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ExclusiveLock.cc
src/librbd/ExclusiveLock.h
src/librbd/exclusive_lock/ImageDispatch.cc
src/librbd/exclusive_lock/ImageDispatch.h
src/librbd/exclusive_lock/PreReleaseRequest.cc
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/test_mock_ExclusiveLock.cc