From ca9eb28b4f249725e3ecae328fbf8076c648819a Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Tue, 7 Sep 2021 10:14:52 +0800 Subject: [PATCH] librbd/cache/pwl/ssd: Remove useless locks. Return a reference don't need by lock protect. Signed-off-by: Jianpeng Ma --- src/librbd/cache/pwl/ssd/LogEntry.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librbd/cache/pwl/ssd/LogEntry.cc b/src/librbd/cache/pwl/ssd/LogEntry.cc index ed2b48ba324..0e6edd87b35 100644 --- a/src/librbd/cache/pwl/ssd/LogEntry.cc +++ b/src/librbd/cache/pwl/ssd/LogEntry.cc @@ -21,7 +21,6 @@ void WriteLogEntry::init_cache_bl( } buffer::list& WriteLogEntry::get_cache_bl() { - std::lock_guard locker(m_entry_bl_lock); return cache_bl; } -- 2.39.5