]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: use locked dentry trace to compose slave rmdir/rename request
authorYan, Zheng <zyan@redhat.com>
Tue, 27 Dec 2016 08:58:07 +0000 (16:58 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Jan 2017 07:23:34 +0000 (15:23 +0800)
commit5b832aa5b6e0bd23f491ac896136e13f72e19353
treef69c777f03d84cdcf3099356c0bc868460c74f2d
parentda1e2614aba17d1507d722688f0e4d91c9bf9edd
mds: use locked dentry trace to compose slave rmdir/rename request

{rmdir/rename}_prepare_witness() use full path to compose slave
requests. But they do not lock all dentries in the path. So someone
else changes the unlocked dentry and causes path travsese of slave
request to fail.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Server.cc
src/mds/Server.h
src/mds/StrayManager.cc