From: Patrick Donnelly Date: Wed, 21 Feb 2024 19:08:13 +0000 (-0500) Subject: mds: skip non-head inodes for quiesce X-Git-Tag: v19.1.0~193^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0ae637a659fe190ea5b0cc1b068f016654c561e;p=ceph.git mds: skip non-head inodes for quiesce These are accessible only via snapshots. Signed-off-by: Patrick Donnelly (cherry picked from commit 92b5bcb44c0eacbc4c449a418350c0ff0506b7b5) --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index bc0271251c64..2d2b0273e2c4 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -13607,7 +13607,7 @@ void MDCache::dispatch_quiesce_inode(const MDRequestRef& mdr) for (auto& dir : in->get_dirfrags()) { for (auto& [dnk, dn] : *dir) { auto* in = dn->get_projected_inode(); - if (!in) { + if (!in || !in->is_head()) { continue; }