]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40173fa9769bc4aaca15a1cb5fddb3eff2d0ef60
tree41d27b7e1c3b343d2a843e3ffe03b99cb1ee08f9
parent3ceaadcd9e374980c151aa5e6f82c67863ee8418
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