]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls: add semantics for cls locks to require renewal without expiring
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 1 Oct 2018 19:18:39 +0000 (15:18 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 24 Oct 2018 21:52:37 +0000 (17:52 -0400)
commit479c90993cc80b140af010a72ff9a34ecb7b3b32
treebc864d4a031a1931d3371679becaa8bd4f4c6575
parent173bfc87544e4f349e2d51e8e34acb83c6067897
cls: add semantics for cls locks to require renewal without expiring

Add ability to *require* renewal of an existing lock in addition
toexisting ability to *allow* renewal of an existing lock. The key
difference is that a MUST_RENEW will fail if the lock has expired
(where a MAY_RENEW) will succeed. This provides calling code with the
ability to verify that a lock is held continually and that it was
never lost/expired.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/lock/cls_lock.cc
src/cls/lock/cls_lock_client.h
src/cls/lock/cls_lock_ops.cc
src/cls/lock/cls_lock_types.h
src/rgw/rgw_cr_rados.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_reshard.cc
src/rgw/rgw_reshard.h
src/test/cls_lock/test_cls_lock.cc
src/test/librados/lock.cc