Commit 2f75e9e1 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: replace hold_mutex flag with goto



All of the early exit paths need to drop the mutex; it is only the normal
path through the function that does not.  Skip the unlock in that case
with a goto out_unlocked.

Signed-off-by: default avatarSage Weil <sage@inktank.com>
Reviewed-by: default avatarJianpeng Ma <majianpeng@gmail.com>
parent 0e5dd45c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment