]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: lock remote inode's primary dentry during rename
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 5 Jan 2013 02:07:11 +0000 (10:07 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 28 Jan 2013 02:18:15 +0000 (10:18 +0800)
commit919df3bf721b62085419b9f305b4f6bcd06a3acb
treed4ee9da66a24039a7d0da3d8d89709cb1b3999fa
parent5176cb71001a32521313dff5294b3257f382bf67
mds: lock remote inode's primary dentry during rename

commit 1203cd2110 (mds: allow open_remote_ino() to open xlocked dentry)
makes Server::handle_client_rename() xlocks remote inodes' primary
dentry so witness MDS can open xlocked dentry. But I added remote inodes'
projected primary dentries to the xlock list. This is wrong because
projected dentries are invisible for path traverse.

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