From: Casey Bodley Date: Mon, 25 Apr 2022 20:32:33 +0000 (-0400) Subject: rgw: OpsLogFile drops lock before flush() X-Git-Tag: v16.2.11~517^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3856812ce56f4c4e9e835dde7b7f6fc65358f401;p=ceph.git rgw: OpsLogFile drops lock before flush() flush() acquires the same lock, so lockdep complains about recursive locking here Signed-off-by: Casey Bodley (cherry picked from commit 5473ae75276b3f552ec70ae308a6fe0db1fe22a5) --- diff --git a/src/rgw/rgw_log.cc b/src/rgw/rgw_log.cc index 59f2ed64dfc3..b2327b3746ea 100644 --- a/src/rgw/rgw_log.cc +++ b/src/rgw/rgw_log.cc @@ -386,6 +386,7 @@ void* OpsLogFile::entry() { } cond.wait(lock); } + lock.unlock(); flush(); return NULL; }