]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Osd: classify flush mode into low speed and high speed modes
authorMingxin Liu <mingxinliu@ubuntukylin.com>
Thu, 28 May 2015 05:20:40 +0000 (13:20 +0800)
committerLi Wang <liwang@ubuntukylin.com>
Thu, 28 May 2015 13:20:16 +0000 (21:20 +0800)
Signed-off-by: Mingxin Liu <mingxinliu@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Suggested-by: Nick Fisk <nick@fisk.me.uk>
src/osd/TierAgentState.h

index e9c22b245fc109ecc33ae038ed86fc44b0cf4750..57f2c72ccf6b48a24ab9443b6d16dd07021a793b 100644 (file)
@@ -35,12 +35,14 @@ struct TierAgentState {
 
   enum flush_mode_t {
     FLUSH_MODE_IDLE,   // nothing to flush
-    FLUSH_MODE_ACTIVE, // flush what we can to bring down dirty count
+    FLUSH_MODE_LOW, // flush dirty objects with a low speed
+    FLUSH_MODE_HIGH, //flush dirty objects with a high speed
   } flush_mode;     ///< current flush behavior
   static const char *get_flush_mode_name(flush_mode_t m) {
     switch (m) {
     case FLUSH_MODE_IDLE: return "idle";
-    case FLUSH_MODE_ACTIVE: return "active";
+    case FLUSH_MODE_LOW: return "low";
+    case FLUSH_MODE_HIGH: return "high";
     default: assert(0 == "bad flush mode");
     }
   }