ceph: replace hold_mutex flag with goto
authorSage Weil <sage@inktank.com>
Fri, 9 Aug 2013 16:57:58 +0000 (09:57 -0700)
committerSage Weil <sage@inktank.com>
Sat, 10 Aug 2013 00:55:48 +0000 (17:55 -0700)
commit2f75e9e17911524f294aa7b3bf0d7233f99a3218
tree41d27b7e1c3b343d2a843e3ffe03b99cb1ee08f9
parent0e5dd45ce4c41d3e3857116a77f34f04c99e78ad
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: Sage Weil <sage@inktank.com>
Reviewed-by: Jianpeng Ma <majianpeng@gmail.com>
fs/ceph/file.c