From: Patrick Donnelly Date: Tue, 7 May 2024 14:31:24 +0000 (-0400) Subject: messages/MClientMetrics: increase priority ahead of regular requests X-Git-Tag: v20.0.0~1886^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d56b50209e72750a769920b04c30cd8ec76982cf;p=ceph.git messages/MClientMetrics: increase priority ahead of regular requests Since these are no longer fast dispatched, we need to ensure they are processed in a timely fashion and ahead of any incoming requests. Signed-off-by: Patrick Donnelly --- diff --git a/src/messages/MClientMetrics.h b/src/messages/MClientMetrics.h index 5db391fe7ac..ba366261de6 100644 --- a/src/messages/MClientMetrics.h +++ b/src/messages/MClientMetrics.h @@ -13,13 +13,18 @@ class MClientMetrics final : public SafeMessage { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION = 1; + static constexpr int PRIORITY = CEPH_MSG_PRIO_HIGH-1; + public: std::vector updates; protected: - MClientMetrics() : MClientMetrics(std::vector{}) { } + MClientMetrics() : MClientMetrics(std::vector{}) { + set_priority(PRIORITY); + } MClientMetrics(std::vector updates) : SafeMessage(CEPH_MSG_CLIENT_METRICS, HEAD_VERSION, COMPAT_VERSION), updates(updates) { + set_priority(PRIORITY); } ~MClientMetrics() final {}