From: Xuehan Xu Date: Mon, 14 Dec 2020 02:52:43 +0000 (+0800) Subject: crimson/osd: allow obc to promote lock state from none to excl X-Git-Tag: v16.1.0~276^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39c8941c5a18c107c78f5900dc8bc0d42edc8e32;p=ceph.git crimson/osd: allow obc to promote lock state from none to excl Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/osd/object_context.h b/src/crimson/osd/object_context.h index e479ac8ee567..12607ede9ec1 100644 --- a/src/crimson/osd/object_context.h +++ b/src/crimson/osd/object_context.h @@ -146,6 +146,8 @@ public: return _with_lock(lock.excl_from_read(), std::forward(func)); case RWState::RWEXCL: return _with_lock(lock.excl_from_excl(), std::forward(func)); + case RWState::RWNONE: + return _with_lock(lock.for_excl(), std::forward(func)); default: assert(0 == "noop"); }