]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: add 'path_locked' flag to MDCache::find_ino_peers()
authorYan, Zheng <zyan@redhat.com>
Mon, 7 Oct 2019 07:50:50 +0000 (15:50 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 12 Dec 2019 18:04:12 +0000 (02:04 +0800)
commit1e889cd035b604aa248b1aba1f11035d30b9e300
treeb98e52ccba26bfb9ef17b5d167c9366081e6b99b
parentcac3c01dfd77185d9945a0191556c042a9d20e13
mds: add 'path_locked' flag to MDCache::find_ino_peers()

MDS now relies on snaplocks to ensure that paths for slave request are
stable. MDCache::handle_find_ino_reply() may encounter xlocked dentry
during path traverse.

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