]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: unlock() must precede out label 10635/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 9 Aug 2016 18:23:00 +0000 (14:23 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 9 Aug 2016 18:24:24 +0000 (14:24 -0400)
In lookup_handle(...).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index b9718c167f4ac851ef94620607023abf55e32416..03bc95775cd26f5747517d12b8ae8c079de3956e 100644 (file)
@@ -1000,9 +1000,9 @@ namespace rgw {
        goto retry; /* !LATCHED */
       }
       /* LATCHED */
+      fh->mtx.unlock(); /* !LOCKED */
     out:
       lat.lock->unlock(); /* !LATCHED */
-      fh->mtx.unlock(); /* !LOCKED */
       return fh;
     }