From: xie xingguo Date: Mon, 19 Sep 2016 08:38:16 +0000 (+0800) Subject: os/bluestore: exercise handle when trying to get through throttlers X-Git-Tag: v11.0.1~169^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1713a547028a3bcf02332a29864041a87b1c56f0;p=ceph.git os/bluestore: exercise handle when trying to get through throttlers Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index a55cd6f47b73..c0b36b08b6ab 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)