Skip to content

Commit 512d10b

Browse files
authored
Merge pull request ceph#65694 from mohit84/mclock_scheduler_monc
osd: Remove monc reference from scheduler Reviewed-by: Sridhar Seshasayee <[email protected]> Reviewed-by: Matan Breizman <[email protected]>
2 parents 2cd5644 + 2cd6c97 commit 512d10b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/osd/OSD.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11030,7 +11030,7 @@ OSDShard::OSDShard(
1103011030
shard_lock{make_mutex(shard_lock_name)},
1103111031
scheduler(ceph::osd::scheduler::make_scheduler(
1103211032
cct, osd->whoami, osd->num_shards, id, osd->store->is_rotational(),
11033-
osd->store->get_type(), osd_op_queue, osd_op_queue_cut_off, osd->monc)),
11033+
osd->store->get_type(), osd_op_queue, osd_op_queue_cut_off)),
1103411034
context_queue(sdata_wait_lock, sdata_cond),
1103511035
ec_extent_cache_lru(cct->_conf.get_val<uint64_t>(
1103611036
"ec_extent_cache_size"))

src/osd/scheduler/OpScheduler.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace ceph::osd::scheduler {
2525
OpSchedulerRef make_scheduler(
2626
CephContext *cct, int whoami, uint32_t num_shards, int shard_id,
2727
bool is_rotational, std::string_view osd_objectstore,
28-
op_queue_type_t osd_scheduler, unsigned op_queue_cut_off, MonClient *monc)
28+
op_queue_type_t osd_scheduler, unsigned op_queue_cut_off)
2929
{
3030
// Force the use of 'wpq' scheduler for filestore OSDs.
3131
// The 'mclock_scheduler' is not supported for filestore OSDs.
@@ -42,7 +42,7 @@ OpSchedulerRef make_scheduler(
4242
// default is 'mclock_scheduler'
4343
return std::make_unique<
4444
mClockScheduler>(cct, whoami, num_shards, shard_id, is_rotational,
45-
op_queue_cut_off, monc);
45+
op_queue_cut_off);
4646
} else {
4747
ceph_abort_msg("Invalid choice of wq");
4848
}

src/osd/scheduler/OpScheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ using OpSchedulerRef = std::unique_ptr<OpScheduler>;
7373
OpSchedulerRef make_scheduler(
7474
CephContext *cct, int whoami, uint32_t num_shards, int shard_id,
7575
bool is_rotational, std::string_view osd_objectstore,
76-
op_queue_type_t osd_scheduler, unsigned op_queue_cut_off, MonClient *monc);
76+
op_queue_type_t osd_scheduler, unsigned op_queue_cut_off);
7777

7878
/**
7979
* Implements OpScheduler in terms of OpQueue

0 commit comments

Comments
 (0)