]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common/tri_mutex: make lock() atomic if doesn't need wait
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 3 Jun 2024 06:33:26 +0000 (14:33 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 6 Jun 2024 13:57:02 +0000 (13:57 +0000)
commitf63d76a2ae348e1419dab20fab9557ce483080ca
treea679ebcb8dcb1f21f0c780d2396da24f29ce0036
parent251b9d4bca14c314b467fd77202e76a70ed90c0f
crimson/common/tri_mutex: make lock() atomic if doesn't need wait

Otherwise, promotion cannot be atomic with the 1st locker.

Identified by: Matan Breizman <mbreizma@redhat.com>

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/common/tri_mutex.cc
src/crimson/common/tri_mutex.h
src/crimson/osd/object_context.h