]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::maybe_handle_cache: do not forward RWORDERED reads 2268/head
authorSamuel Just <sam.just@inktank.com>
Thu, 14 Aug 2014 18:13:31 +0000 (11:13 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 15 Aug 2014 21:04:20 +0000 (14:04 -0700)
Even with READFORWARD, we can't forward RWORDERED reads.

Fixes: #9119
Backport: firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index ed0bba0d96d8aaaffd3febaa5852225a7b36bd4a..83d2b4da108a0fab5858910f1e047f877088935a 100644 (file)
@@ -1637,7 +1637,7 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op,
     }
 
     // Do writeback to the cache tier for writes
-    if (op->may_write()) {
+    if (op->may_write() || write_ordered) {
       if (agent_state &&
          agent_state->evict_mode == TierAgentState::EVICT_MODE_FULL) {
        dout(20) << __func__ << " cache pool full, waiting" << dendl;