]> 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)
committerXiubo Li <xiubli@redhat.com>
Wed, 31 Jul 2024 03:10:08 +0000 (11:10 +0800)
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>
src/mds/MDCache.cc

index 83ad5756360eb85088a17d98f4b1b6e05e66df47..7d88bc2cebb819e911516d25676884a7fc33c369 100644 (file)
@@ -8335,7 +8335,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())) {