From: Mingxin Liu Date: Thu, 28 May 2015 05:20:40 +0000 (+0800) Subject: Osd: classify flush mode into low speed and high speed modes X-Git-Tag: v9.0.3~134^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=735abeaf87c25ce63853829f6abe47cca4ec719b;p=ceph.git Osd: classify flush mode into low speed and high speed modes Signed-off-by: Mingxin Liu Reviewed-by: Li Wang Suggested-by: Nick Fisk --- diff --git a/src/osd/TierAgentState.h b/src/osd/TierAgentState.h index e9c22b245fc1..57f2c72ccf6b 100644 --- a/src/osd/TierAgentState.h +++ b/src/osd/TierAgentState.h @@ -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"); } }