]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: move empty-check of osr-queue out of loop 12275/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 5 Dec 2016 11:56:14 +0000 (19:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 5 Dec 2016 11:58:53 +0000 (19:58 +0800)
which is optimal.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 73026061705445b6fbe4329de830d9fc7c55899e..9470a6798b75f230f09a9fb2bacea78431b0d836 100644 (file)
@@ -6526,9 +6526,9 @@ void BlueStore::_osr_reap_done(OpSequencer *osr)
       txc->log_state_latency(logger, l_bluestore_state_done_lat);
       delete txc;
       osr->qcond.notify_all();
-      if (osr->q.empty())
-        dout(20) << __func__ << " osr " << osr << " q now empty" << dendl;
     }
+    if (osr->q.empty())
+      dout(20) << __func__ << " osr " << osr << " q now empty" << dendl;
   }
 
   if (c) {