]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: cache tiering: fix the atime logic of the eviction 4093/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Tue, 28 Oct 2014 01:37:11 +0000 (09:37 +0800)
committerLoic Dachary <ldachary@redhat.com>
Thu, 19 Mar 2015 09:20:29 +0000 (10:20 +0100)
Reported-by: Xinze Chi <xmdxcxz@gmail.com>
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
(cherry picked from commit 622c5ac41707069ef8db92cb67c9185acf125d40)

src/osd/ReplicatedPG.cc

index b9edd70f44be7a0688935cf91e769fde1f5a5309..8f6d711a46cc3b271540e6cc8c035cacb8e6b6c5 100644 (file)
@@ -11659,8 +11659,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;
   }