From: Xuehan Xu Date: Mon, 8 Mar 2021 07:51:49 +0000 (+0800) Subject: crimson/osd: acquire locks strictly by OSDOp type X-Git-Tag: v17.1.0~2680^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29722096bd21c964e82ca9fa332f9b27024e1c6c;p=ceph.git crimson/osd: acquire locks strictly by OSDOp type Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 0e335a2180f..afe182cb649 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -997,9 +997,9 @@ PG::with_locked_obc(Ref &m, const OpInfo &op_info, } case RWState::RWEXCL: if (oid.is_head()) { - return with_head_obc(oid, std::move(f)); + return with_head_obc(oid, std::move(f)); } else { - return with_clone_obc(oid, std::move(f)); + return with_clone_obc(oid, std::move(f)); } default: ceph_abort();