]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerMilind Changire <mchangir@redhat.com>
Sat, 25 Jan 2025 02:23:59 +0000 (07:53 +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 392da0b10cb5c0248f59a2ef5dc119b1644dd225..2210ab0074167e85a0bf7d9007c90f33f96a0482 100644 (file)
@@ -8277,7 +8277,8 @@ int MDCache::path_traverse(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())) {