]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Add OSD_BACKFILL_PRIORITY_FORCED with lower priority
authorDavid Zafman <dzafman@redhat.com>
Fri, 1 Feb 2019 07:04:03 +0000 (23:04 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 7 Feb 2019 23:46:23 +0000 (15:46 -0800)
than OSD_RECOVERY_PRIORITY_FORCED

Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/PG.cc
src/osd/osd_types.h

index 170d772ce285af6071d85311814088586be0bc26..0ea49cd8147a37420d96f4f60520dfd256a21cb7 100644 (file)
@@ -2467,7 +2467,7 @@ unsigned PG::get_backfill_priority()
   // a higher value -> a higher priority
   int ret = OSD_BACKFILL_PRIORITY_BASE;
   if (state & PG_STATE_FORCED_BACKFILL) {
-    ret = OSD_RECOVERY_PRIORITY_FORCED;
+    ret = OSD_BACKFILL_PRIORITY_FORCED;
   } else {
     if (acting.size() < pool.info.min_size) {
       // inactive: no. of replicas < min_size, highest priority since it blocks IO
index 41a9f62a9cbac0f581f61a532448d83fd5a240a5..77def16ee502d2a15cc06a1d0af9e360ead792db 100644 (file)
 #define OSD_BACKFILL_INACTIVE_PRIORITY_BASE 220
 
 /// max manually/automatically set recovery priority for MBackfillReserve
-#define OSD_RECOVERY_PRIORITY_MAX 254
+#define OSD_RECOVERY_PRIORITY_MAX 253
 
-/// max recovery priority for MBackfillReserve, only when forced manually
+/// backfill priority for MBackfillReserve, when forced manually
+#define OSD_BACKFILL_PRIORITY_FORCED 254
+
+/// recovery priority for MRecoveryReserve, when forced manually
 #define OSD_RECOVERY_PRIORITY_FORCED 255
 
 /// priority for pg deletion when osd is not fullish