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: v18.2.5~534^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ec5c169e1639e106dc5671829f5df5bd0c1544b;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 (cherry picked from commit d56b50209e72750a769920b04c30cd8ec76982cf) --- diff --git a/src/messages/MClientMetrics.h b/src/messages/MClientMetrics.h index 5db391fe7ac8..ba366261de6a 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 {}