]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add event for batching getattr/lookup 53557/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:33:48 +0000 (11:33 -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 2236129c564186b8df2104bade46bff9b8b5a778..b332257bdd4ca6928a79de792011195b14d804a9 100644 (file)
@@ -4000,6 +4000,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 {
@@ -4011,6 +4012,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;
       }
     }