]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: skip non-head inodes for quiesce
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 21 Feb 2024 19:08:13 +0000 (14:08 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Mar 2024 14:56:55 +0000 (10:56 -0400)
These are accessible only via snapshots.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc

index bc0271251c64380130f0f757ef365ee33167128e..2d2b0273e2c4e7aa1d0c3779af920c8178d46f6c 100644 (file)
@@ -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;
         }