]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: OpsLogFile drops lock before flush() 46039/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 25 Apr 2022 20:32:33 +0000 (16:32 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 8 Jun 2022 16:21:41 +0000 (12:21 -0400)
flush() acquires the same lock, so lockdep complains about recursive
locking here

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 5473ae75276b3f552ec70ae308a6fe0db1fe22a5)

src/rgw/rgw_log.cc

index 59f2ed64dfc333c022e316651d397bc5edaa8043..b2327b3746ea3f79772916ca49f36961699bc9f6 100644 (file)
@@ -386,6 +386,7 @@ void* OpsLogFile::entry() {
     }
     cond.wait(lock);
   }
+  lock.unlock();
   flush();
   return NULL;
 }