]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: do not schedule quiesce for non-head imported inodes
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 6 Feb 2025 18:34:49 +0000 (13:34 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 17 Feb 2025 19:56:20 +0000 (14:56 -0500)
Fixes: https://tracker.ceph.com/issues/69844
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit f893778ef008a1c0d0a7236b8217411ef67511ed)

src/mds/MDCache.cc

index f00e588c7a2e3644cb21d8f5feffcee394785c25..fbaf446c3c8f8b8e2d4c97af868d782cce7fa3ce 100644 (file)
@@ -13844,7 +13844,10 @@ void MDCache::add_quiesce(CInode* parent, CInode* in)
   auto& qs = *qis->qs;
   auto& qops = qrmdr->more()->quiesce_ops;
 
-  if (auto it = qops.find(in->ino()); it != qops.end()) {
+  if (!in->is_head()) {
+    dout(25) << " skipping non-head inode: " << *in << dendl;
+    return;
+  } else if (auto it = qops.find(in->ino()); it != qops.end()) {
     dout(25) << __func__ << ": existing quiesce metareqid: "  << it->second << dendl;
     return;
   }