From: Patrick Donnelly Date: Thu, 6 Feb 2025 18:34:49 +0000 (-0500) Subject: mds: do not schedule quiesce for non-head imported inodes X-Git-Tag: testing/wip-jcollin-testing-20250826.023624-squid~3^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f786bd335bd40dd1904b024bf3f9d5a74e01173d;p=ceph-ci.git mds: do not schedule quiesce for non-head imported inodes Fixes: https://tracker.ceph.com/issues/69844 Signed-off-by: Patrick Donnelly (cherry picked from commit f893778ef008a1c0d0a7236b8217411ef67511ed) --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index f00e588c7a2..fbaf446c3c8 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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; }