]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: make Server::rdlock_path_xlock_dentry take locks
authorYan, Zheng <zyan@redhat.com>
Thu, 12 Sep 2019 07:20:57 +0000 (15:20 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 12 Dec 2019 18:04:09 +0000 (02:04 +0800)
commitc1d7f93d7bd06d773b8035359548c0c9216398e3
tree4073a6796fe0ee5d25a32e4f673d7cd82aa2dc7e
parenta9e44af3960cc94020515815acbdb8e42f8dbc79
mds: make Server::rdlock_path_xlock_dentry take locks

Introduce MDS_TRAVERSE_XLOCK_DENTRY, which instructs
MDCache::path_traverse() to take appropriate locks (xlock dentry,
wrlock directory's filelock/nestlock) for file create/deletion.

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