]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common/tri_mutex: make promotion atomic with func
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 15 Apr 2024 02:03:35 +0000 (10:03 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 19 Apr 2024 07:02:14 +0000 (15:02 +0800)
commit676947e1f73a9d7f900df5a6854c283c4eef24a9
treebb455889b589a2525b9af725f5d1a38700488931
parent26b96f93bb1922e1f430ae0480aafa8c7ee0d38a
crimson/common/tri_mutex: make promotion atomic with func

Specifically, make promotion atomic with load-obc to fix
assert(readers/writers == 1) failures.

Fixes: https://tracker.ceph.com/issues/65451
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