]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: basic policy for controlling the release of the exclusive lock
authorJason Dillaman <dillaman@redhat.com>
Mon, 21 Mar 2016 21:50:10 +0000 (17:50 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 29 Mar 2016 19:12:28 +0000 (15:12 -0400)
commit2afb2c31ed9e18d07decd40b8265804bfbdb62c5
tree0d14671949b38e4d731a67a5ffee1d081d73dee2
parentdae789dd2bb505dc99338b5d773964e1d500e715
librbd: basic policy for controlling the release of the exclusive lock

The rbd-mirror daemon will need to interlock with the request for the lock
from another client with the successful sync of remote journal events.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/ImageWatcher.cc
src/librbd/Makefile.am
src/librbd/exclusive_lock/Policy.h [new file with mode: 0644]
src/librbd/exclusive_lock/StandardPolicy.cc [new file with mode: 0644]
src/librbd/exclusive_lock/StandardPolicy.h [new file with mode: 0644]