]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add new lock_get_owners / lock_break_lock API methods
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 Jan 2017 19:51:14 +0000 (14:51 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 11 Jan 2017 20:46:09 +0000 (15:46 -0500)
commit2c3fd9697772af298de6bb11683b84a966dbfecc
tree3b4418cb4a086d1a4750077a734893b8a967254b
parent4aaee32b1c08ef62305525d29aef57b819c3ad83
librbd: add new lock_get_owners / lock_break_lock API methods

If the client application supports failover, let the application
force break the current lock and blacklist the owner. This is
required in case the current lock owner is alive from the point-of-view
of librbd but failover was required due to a higher level reason.

Fixes: http://tracker.ceph.com/issues/18327
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 9a5a8c75a025143cee6f92f3dbc3a12f2b6a9ad7)
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/pybind/rbd/rbd.pyx
src/test/librbd/test_librbd.cc
src/test/pybind/test_rbd.py
src/tracing/librbd.tp