From 9f64f34e481278a683e962b17c7aa811005783a8 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 9 Aug 2016 14:23:00 -0400 Subject: [PATCH] rgw_file: unlock() must precede out label In lookup_handle(...). Signed-off-by: Matt Benjamin --- src/rgw/rgw_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index b9718c167f4ac..03bc95775cd26 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -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; } -- 2.39.5