#define CEPH_LOCKDEP_H
#include "include/common_fwd.h"
+
+#ifdef CEPH_DEBUG_MUTEX
+
extern bool g_lockdep;
extern void lockdep_register_ceph_context(CephContext *cct);
extern int lockdep_locked(const char *n, int id, bool force_backtrace=false);
extern int lockdep_will_unlock(const char *n, int id);
extern int lockdep_dump_locks();
+
+#else
+
+static constexpr bool g_lockdep = false;
+#define lockdep_register(...) 0
+#define lockdep_unregister(...)
+#define lockdep_will_lock(...) 0
+#define lockdep_locked(...) 0
+#define lockdep_will_unlock(...) 0
+
+#endif // CEPH_DEBUG_MUTEX
+
+
#endif