]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scheduler/OpSchedulerItem: schedule backoffs as client ops 32382/head
authorSamuel Just <sjust@redhat.com>
Fri, 20 Dec 2019 01:29:58 +0000 (17:29 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 20 Dec 2019 01:29:59 +0000 (17:29 -0800)
The backoff machinery relies on backoffs being ordered the same
way as client ops.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/scheduler/OpSchedulerItem.h

index 54c08437f4036d16094ce933435ddfba95eae574..08b888c6d55a1a5ac8caac32fd99e0dea0ede2a9 100644 (file)
@@ -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;