From bb848ed61a33573d728b9ad4f866d83c670a4d27 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 19 Dec 2019 17:29:58 -0800 Subject: [PATCH] osd/scheduler/OpSchedulerItem: schedule backoffs as client ops The backoff machinery relies on backoffs being ordered the same way as client ops. Signed-off-by: Samuel Just --- src/osd/scheduler/OpSchedulerItem.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osd/scheduler/OpSchedulerItem.h b/src/osd/scheduler/OpSchedulerItem.h index 54c08437f40..08b888c6d55 100644 --- a/src/osd/scheduler/OpSchedulerItem.h +++ b/src/osd/scheduler/OpSchedulerItem.h @@ -244,7 +244,9 @@ public: } op_scheduler_class get_scheduler_class() const final { - if (maybe_get_mosd_op()) { + auto type = op->get_req()->get_type(); + if (type == CEPH_MSG_OSD_OP || + type == CEPH_MSG_OSD_BACKOFF) { return op_scheduler_class::client; } else { return op_scheduler_class::immediate; -- 2.39.5