]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: kick off recovery on backoffing a degraded object
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>
Wed, 27 Sep 2017 08:58:19 +0000 (16:58 +0800)
As we are now blocking frontend ops from accessing that very object!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PrimaryLogPG.cc

index cecd6a657865e3a710d22ed79bdea03cb47e2b6b..61da1e1d0b0af2e0d9c81fa3035af17a43132389 100644 (file)
@@ -2006,6 +2006,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);
     }