From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx> rdlock prepended dest trace to prevent them from being xlocked by someone else. Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx> --- src/mds/Server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 8d05a37..119af98 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -5228,6 +5228,7 @@ void Server::handle_client_rename(MDRequest *mdr) while (destbase != srcbase) { desttrace.insert(desttrace.begin(), destbase->get_projected_parent_dn()); + rdlocks.insert(&desttrace[0]->lock); dout(10) << "rename prepending desttrace with " << *desttrace[0] << dendl; destbase = destbase->get_projected_parent_dn()->get_dir()->get_inode(); } -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html