]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add event for batching getattr/lookup 52518/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Jul 2023 01:02:06 +0000 (21:02 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Jul 2023 12:37:03 +0000 (08:37 -0400)
Fixes: https://tracker.ceph.com/issues/62057
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Server.cc

index 94397d9f067e8c07eb0a3a30986940cb6ce16343..582c3e319df215fa1b1843b55e286570866acc12 100644 (file)
@@ -4063,6 +4063,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 {
@@ -4074,6 +4075,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;
       }
     }