]> 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>
Fri, 22 Mar 2024 15:38:02 +0000 (11:38 -0400)
These are accessible only via snapshots.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 92b5bcb44c0eacbc4c449a418350c0ff0506b7b5)

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;
         }