]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: drop x/wrlocks before, rdlocks after sending reply
authorSage Weil <sage@newdream.net>
Tue, 17 Aug 2010 19:16:02 +0000 (12:16 -0700)
committerSage Weil <sage@newdream.net>
Tue, 17 Aug 2010 19:15:04 +0000 (12:15 -0700)
commit60596c75a186587ee62e6b587890e9ccdc9abf06
treec8c1c40f0de7d259041a72b5f62d9f1355e7d165
parentcaec5d2b198b600f110c813a019129c62d24aa32
mds: drop x/wrlocks before, rdlocks after sending reply

This lets us issue the most leases/caps possible.  It also ensure we can
issue caps in the snapped namespace when we are still on the head inode
(previously, releasing the rdlock twiddled the state, the client didn't
get say Frc, and hung indefinitely).
src/mds/Locker.cc
src/mds/Locker.h
src/mds/Server.cc