]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: exercise handle when trying to get through throttlers
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Sep 2016 08:38:16 +0000 (16:38 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Sep 2016 08:38:16 +0000 (16:38 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index a55cd6f47b73389a54f1b511c137d9f294804c7c..c0b36b08b6ab426583f877fa5d5857eb5f43b0dc 100644 (file)
@@ -6464,11 +6464,17 @@ int BlueStore::queue_transactions(
     txc->t->set(PREFIX_WAL, key, bl);
   }
 
+  if (handle)
+    handle->suspend_tp_timeout();
+
   throttle_ops.get(txc->ops);
   throttle_bytes.get(txc->bytes);
   throttle_wal_ops.get(txc->ops);
   throttle_wal_bytes.get(txc->bytes);
 
+  if (handle)
+    handle->reset_tp_timeout();
+
   logger->inc(l_bluestore_txc);
 
   // execute (start)