]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Check the lock state, not the inode state!
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 6 Oct 2010 23:35:14 +0000 (16:35 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 6 Oct 2010 23:42:22 +0000 (16:42 -0700)
commit8b716c6db8f2b52f5da6dd0419934b84ab53b1ea
treeced7e318d2b98673beac90bbcbd41876cb4a9651
parent48196f91f0babd20c2f0790bf6b6814fa4bb1add
mds: Check the lock state, not the inode state!

This was causing a lot of slowdowns.
Additionally, pin the inode when exporting caps -- otherwise it could
disappear out from under a cap ack. This was probably just exposed
by fixing the lock check.
src/mds/CInode.h
src/mds/Locker.cc
src/mds/Migrator.cc