]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: keep dentry lock in sync state
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 12 Nov 2013 08:12:25 +0000 (16:12 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 16 Dec 2013 04:15:23 +0000 (12:15 +0800)
commitb7d78918de346ae63aef17e6c94bf94e54973318
tree4bba0e2c28f013f6b5e5be8243640ffe8b4ad70e
parentd8440c4cae7d146252ed7fb1331907c0a213d977
mds: keep dentry lock in sync state

unlike locks of other types, dentry lock in unreadable state can
block path traverse, so it should be in sync state as much as
possible.

This patch make Locker::try_eval() change dentry lock's state to
sync even when the dentry is freezing. Also make migrator check
imported dentries' lock states, change locks' states to sync if
necessary.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Locker.cc
src/mds/Migrator.cc