]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mClockScheduler: Set priority cutoff in the mClock Scheduler 51666/head
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 23 Mar 2023 13:19:56 +0000 (18:49 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Mon, 22 May 2023 11:57:05 +0000 (17:27 +0530)
commit7d3d3d13e7bed9b3e36819d7c13c701425321a75
tree8635fe8cd9d95d93ab7a73ef4fef3b52ad0fc0f6
parent98be5f1666798c0d7d476959b59269129cff2b63
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>
(cherry picked from commit cf5df7c443aff68f54e3c0ff5b222957ee0fc036)
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h