From: Casey Bodley Date: Mon, 25 Apr 2022 20:32:33 +0000 (-0400) Subject: rgw: OpsLogFile drops lock before flush() X-Git-Tag: v17.2.1~67^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1933b23a68541b052e8b9253a59bf0158ed3ea37;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 4631697724c..33b161a45f9 100644 --- a/src/rgw/rgw_log.cc +++ b/src/rgw/rgw_log.cc @@ -389,6 +389,7 @@ void* OpsLogFile::entry() { } cond.wait(lock); } + lock.unlock(); flush(); return NULL; }