]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mClockScheduler: Set priority cutoff in the mClock Scheduler
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 23 Mar 2023 13:19:56 +0000 (18:49 +0530)
committerAishwarya Mathuria <aishwaryamathuria@li-9e0a7d4c-34fa-11b2-a85c-bf340f364250.ibm.com>
Tue, 9 May 2023 13:32:37 +0000 (19:02 +0530)
commitcf5df7c443aff68f54e3c0ff5b222957ee0fc036
tree476a49c65b68d2a83925473c201acc04c5792d14
parent785f3ec474a7f78fee24ef9bcb4f64a2c0550094
mClockScheduler: Set priority cutoff in the mClock Scheduler

We check the priority of an op before deciding if it gets enqueued in
the high_priority_queue or the mClock scheduler queue. Instead of
checking what osd_op_queue_cut_off is set to each time, we should be
checking the cutoff only once and set that as the priority_cutoff. This
will avoid any issues when osd_op_queue_cut_off is set to debug_random.

Fixes: https://tracker.ceph.com/issues/58940
Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h