]> git-server-git.apps.pok.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>
Fri, 6 Jan 2017 16:53:19 +0000 (11:53 -0500)
commit9a5a8c75a025143cee6f92f3dbc3a12f2b6a9ad7
tree16ebae5a7e4338c59a9ece2f546851c861051668
parent23f60fee86d1ff9b261fbb6411746a2a9479cf19
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>
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