From 33b561b73a0a98897306a04713df2d2269227b2d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 1 Mar 2026 23:46:30 +0000 Subject: [PATCH] Fix throttling with the new store --- src/blockstore/blockstore_write.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blockstore/blockstore_write.cpp b/src/blockstore/blockstore_write.cpp index 5dd48ac1..9aa02206 100644 --- a/src/blockstore/blockstore_write.cpp +++ b/src/blockstore/blockstore_write.cpp @@ -404,11 +404,12 @@ resume_6: if (ref_us > exec_us + throttle_threshold_us) { // Pause reply + PRIV(op)->pending_ops++; PRIV(op)->op_state = 7; // Remember that the timer can in theory be called right here tfd->set_timer_us(ref_us-exec_us, false, [this, op](int timer_id) { - PRIV(op)->op_state = 8; + PRIV(op)->pending_ops--; ringloop->wakeup(); }); return 1;