]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mClock: Add ability to handle high priority operations
authorAishwarya Mathuria <amathuri@redhat.com>
Wed, 9 Nov 2022 13:08:29 +0000 (18:38 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Wed, 8 Feb 2023 06:37:47 +0000 (12:07 +0530)
commit4ac70ae196a7aa05ba98bab46ddc7b516a686577
tree968c15b9488eb6495b3fb24ddbf69d3c002d40c6
parentbe94fa2b0681b9fab6af911ff1f53123267fd70a
mClock: Add ability to handle high priority operations

There are some cases that may require mClock to handle high priority operations before other items in the queue.
In order to make this possible, we are introducing a "High Queue" that will hold high priority operations.
The high queue will be dequeued before the mClock queue.
High queue has been implemented as a priority queue, operations with higher priority will get preference at time of dequeue.

Trello: https://trello.com/c/Kelm8z0x/775-qos-add-ability-to-handle-high-priority-operations

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h
src/test/osd/TestMClockScheduler.cc