]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add event for batching getattr/lookup 53556/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Jul 2023 01:02:06 +0000 (21:02 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Sep 2023 15:32:47 +0000 (11:32 -0400)
Fixes: https://tracker.ceph.com/issues/62057
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 1d2aa402652ee8b4bc51af1f7817d7c53c2e034a)

src/mds/Server.cc

index b98d9650146cd416a2dc2ac4e2b101d7bc0e9475..06106483b0128a680af6b5837fb6a4969b7ff18b 100644 (file)
@@ -4015,6 +4015,7 @@ void Server::handle_client_getattr(MDRequestRef& mdr, bool is_lookup)
       } else {
        dout(20) << __func__ << ": LOOKUP op, wait for previous same getattr ops to respond. " << *mdr << dendl;
        em.first->second->add_request(mdr);
+        mdr->mark_event("joining batch lookup");
        return;
       }
     } else {
@@ -4026,6 +4027,7 @@ void Server::handle_client_getattr(MDRequestRef& mdr, bool is_lookup)
       } else {
        dout(20) << __func__ << ": GETATTR op, wait for previous same getattr ops to respond. " << *mdr << dendl;
        em.first->second->add_request(mdr);
+        mdr->mark_event("joining batch getattr");
        return;
       }
     }