From bc48eb1ff8a493ff19351eda233f96e7cf4fca56 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 4 Aug 2025 02:27:44 +0300 Subject: [PATCH] Add missing request_trim --- src/blockstore/blockstore_write.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blockstore/blockstore_write.cpp b/src/blockstore/blockstore_write.cpp index 1bd44b1a..c7f2097f 100644 --- a/src/blockstore/blockstore_write.cpp +++ b/src/blockstore/blockstore_write.cpp @@ -353,8 +353,10 @@ resume_4: int res = make_big_write(op, op->offset, op->len, &modified_block, &moved_from_block); if (res == EAGAIN) { + assert(heap->get_inflight_queue_size()); PRIV(op)->wait_for = WAIT_COMPACTION; PRIV(op)->wait_detail = flusher->get_compact_counter(); + flusher->request_trim(); return 1; } else if (res == ENOSPC)