]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/ceph_mutex: add more ceph_mutex_is_*() helpers
authorKefu Chai <kchai@redhat.com>
Sun, 7 Jul 2019 08:17:35 +0000 (16:17 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 3 Aug 2019 03:27:19 +0000 (11:27 +0800)
commit307ccc42f09421b2bf1df3792a29a4b86bdd2b1a
treedc4f0920ac12a8a571b02f5ea5c379f15710143a
parentcc67c34a9e5b32e9372f6e109549619def3b6bc4
common/ceph_mutex: add more ceph_mutex_is_*() helpers

we have caller sites like

ceph_assert(!client->client_lock.is_locked_by_me())

in `src/client/Client.cc` and `src/librados/RadosClient.cc`.

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