Skip to content

Commit

Permalink
osd: cache tiering: fix the atime logic of the eviction
Browse files Browse the repository at this point in the history
Reported-by: Xinze Chi <xmdxcxz@gmail.com>
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
(cherry picked from commit 622c5ac)
  • Loading branch information
wonzhq authored and ldachary committed Mar 11, 2015
1 parent baa74b8 commit 6207333
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osd/ReplicatedPG.cc
Expand Up @@ -11409,8 +11409,7 @@ bool ReplicatedPG::agent_maybe_evict(ObjectContextRef& obc)

// FIXME: ignore temperature for now.

// KISS: if [lower,upper] spans our target effort, evict it.
if (atime_lower >= agent_state->evict_effort)
if (1000000 - atime_upper >= agent_state->evict_effort)
return false;
}

Expand Down

0 comments on commit 6207333

Please sign in to comment.