]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: assert debug mutex lock is not held if !recursive
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 28 Sep 2024 01:21:34 +0000 (21:21 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 2 Oct 2024 14:44:52 +0000 (10:44 -0400)
commit69baa6de2579f0e3ce8298e14b970b8c68deae9c
treeb8b505331d9733a5f6824d794b2b7b638f358ed7
parentbb2a2208867d7bce58b9697570c83d995a1c5976
common: assert debug mutex lock is not held if !recursive

There's appropriate checks for unlock and post-lock but nothing to stop the
undefined behavior of a double-lock on a non-recursive mutex.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/mutex_debug.h