From 43f13af614a7e209fc122819df50723d64314088 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Wed, 26 Nov 2014 09:57:03 +0800 Subject: [PATCH] osd: tiering: proxy instead of redirect read in writeback mode when the cache pool is full To preserve read op order Signed-off-by: Zhiqiang Wang --- src/osd/ReplicatedPG.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 6154bb0459676..bec851d0b8920 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1783,8 +1783,8 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op, if (agent_state && agent_state->evict_mode == TierAgentState::EVICT_MODE_FULL) { if (!op->may_write() && !op->may_cache() && !write_ordered) { - dout(20) << __func__ << " cache pool full, redirecting read" << dendl; - do_cache_redirect(op, obc); + dout(20) << __func__ << " cache pool full, proxying read" << dendl; + do_proxy_read(op); return true; } dout(20) << __func__ << " cache pool full, waiting" << dendl; -- 2.39.5