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

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 9f64f34e481278a683e962b17c7aa811005783a8)

src/rgw/rgw_file.h

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