]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/mutex_debug: add lockdep parameter to mutex's ctor
authorKefu Chai <kchai@redhat.com>
Thu, 25 Jul 2019 16:32:57 +0000 (00:32 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 3 Aug 2019 03:27:19 +0000 (11:27 +0800)
commit2dbd31eb0bdfcc1193e92069b82b9416b9659687
tree2e17070f0d27cc65b0ef66f3d6133c89d6fe471a
parentbb2a97000be836488c1aae97cd3283b46c9545e6
common/mutex_debug: add lockdep parameter to mutex's ctor

so we can disable lockdep when constructing a ceph::mutex. otherwise
it's difficult to use the locks from standard library and to use
`ceph_assert(ceph_mutex_is_locked(lock))` at the same time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/mutex_debug.cc
src/common/mutex_debug.h
src/common/shared_mutex_debug.cc
src/common/shared_mutex_debug.h