ceph: fix rare potential cap leak
authorSage Weil <sage@newdream.net>
Thu, 12 May 2011 22:13:23 +0000 (15:13 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:25:03 +0000 (11:25 -0700)
commit3540303f87115cbdae6ed2cab44ce6a7676d48d3
treeeb1003ac91370488972e3e5b126771707cf98a88
parent12a2f643b0e6e791ba61485430d0003eeb3e373c
ceph: fix rare potential cap leak

If we grab new_cap, retake the lock, and find we already have a cap now
for the given mds, release new_cap.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c