From 1713a547028a3bcf02332a29864041a87b1c56f0 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 19 Sep 2016 16:38:16 +0800 Subject: [PATCH] os/bluestore: exercise handle when trying to get through throttlers Signed-off-by: xie xingguo --- src/os/bluestore/BlueStore.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index a55cd6f47b733..c0b36b08b6ab4 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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) -- 2.39.5