]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: kick off recovery on backoffing a degraded object 18031/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 27 Sep 2017 08:05:56 +0000 (16:05 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Sep 2017 00:35:21 +0000 (08:35 +0800)
As we are now blocking frontend ops from accessing that very object!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit db20328b456d70d6728fd27f17da6f2f3546e84b)

src/osd/PrimaryLogPG.cc

index 2877c28d67a618da2577b9b744aee684a599c3b9..332b65709a7652604f8a96df6165e36aa4f09581 100644 (file)
@@ -2041,6 +2041,7 @@ void PrimaryLogPG::do_op(OpRequestRef& op)
   if (write_ordered && is_degraded_or_backfilling_object(head)) {
     if (can_backoff && g_conf->osd_backoff_on_degraded) {
       add_backoff(session, head, head);
+      maybe_kick_recovery(head);
     } else {
       wait_for_degraded_object(head, op);
     }