From: Samuel Just Date: Tue, 19 Aug 2025 16:24:19 +0000 (-0700) Subject: osd/.../mClockScheduler: remove MonClient argument X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abea0967561c262aff49b2ba5cb5c861f22f689c;p=ceph.git osd/.../mClockScheduler: remove MonClient argument Signed-off-by: Samuel Just --- diff --git a/src/osd/scheduler/mClockScheduler.h b/src/osd/scheduler/mClockScheduler.h index 190b5745bb85..a6a5d2202b20 100644 --- a/src/osd/scheduler/mClockScheduler.h +++ b/src/osd/scheduler/mClockScheduler.h @@ -42,7 +42,6 @@ class mClockScheduler : public OpScheduler { CephContext *cct; const unsigned cutoff_priority; - MonClient *monc; ClientRegistry client_registry; MclockConfig mclock_conf; @@ -81,11 +80,9 @@ public: std::chrono::duration idle_age, std::chrono::duration erase_age, std::chrono::duration check_time, - MonClient *monc, bool init_perfcounter=true) : cct(cct), cutoff_priority(cutoff_priority), - monc(monc), mclock_conf(cct, client_registry, num_shards, is_rotational, shard_id, whoami), scheduler( @@ -104,14 +101,13 @@ public: mClockScheduler( CephContext *cct, int whoami, uint32_t num_shards, int shard_id, bool is_rotational, unsigned cutoff_priority, - MonClient *monc, bool init_perfcounter=true) : mClockScheduler( cct, whoami, num_shards, shard_id, is_rotational, cutoff_priority, crimson::dmclock::standard_idle_age, crimson::dmclock::standard_erase_age, crimson::dmclock::standard_check_time, - monc, init_perfcounter) {} + init_perfcounter) {} /// Calculate scaled cost per item uint32_t calc_scaled_cost(int cost); diff --git a/src/test/osd/TestMClockScheduler.cc b/src/test/osd/TestMClockScheduler.cc index e283a2b3bd26..73872be54928 100644 --- a/src/test/osd/TestMClockScheduler.cc +++ b/src/test/osd/TestMClockScheduler.cc @@ -34,7 +34,6 @@ public: int shard_id; bool is_rotational; unsigned cutoff_priority; - MonClient *monc; bool init_perfcounter; mClockScheduler q; @@ -48,12 +47,11 @@ public: shard_id(0), is_rotational(false), cutoff_priority(12), - monc(nullptr), init_perfcounter(true), q(g_ceph_context, whoami, num_shards, shard_id, is_rotational, cutoff_priority, 2ms, 2ms, 1ms, - monc, init_perfcounter), + init_perfcounter), client1(1001), client2(9999), client3(100000001)