From 8e1515b068991567136042fb11384fb0fd0620fe 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 (cherry picked from commit 9f64f34e481278a683e962b17c7aa811005783a8) --- 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 a99ea5067f0a3..7648b0b2f3101 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -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; } -- 2.39.5