From f786bd335bd40dd1904b024bf3f9d5a74e01173d Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 6 Feb 2025 13:34:49 -0500 Subject: [PATCH] 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) --- src/mds/MDCache.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5