]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: print the path depth to help debug mds issue
authorXiubo Li <xiubli@redhat.com>
Wed, 31 Jul 2024 02:48:01 +0000 (10:48 +0800)
committerJos Collin <jcollin@redhat.com>
Thu, 28 Aug 2025 04:04:39 +0000 (09:34 +0530)
From the path depth we can get more useful info, such as whether
the path_traverse() acquired any locks, etc.

Fixes: https://tracker.ceph.com/issues/67280
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 5d8aa5245cb7e5d819651898533130e463b373fe)

src/mds/MDCache.cc

index 44f08189527f334d6fb1d374192913526464c924..8aa1386c34ac1af22c02edaf460fcb833d7fd214 100644 (file)
@@ -8331,7 +8331,8 @@ int MDCache::path_traverse(const MDRequestRef& mdr, MDSContextFactory& cf,
 
   if (mds->logger) mds->logger->inc(l_mds_traverse);
 
-  dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid << dendl;
+  dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid
+          << " path depth " << path.depth() << dendl;
   CInode *cur = get_inode(path.get_ino());
   if (!cur) {
     if (MDS_INO_IS_MDSDIR(path.get_ino())) {