From 85c4be39578fc4bfce9c709b74e043c7f44509c0 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 17 Jun 2026 15:40:05 +0300 Subject: [PATCH] Clear lsn on sync retry to prevent possible crash on full io_uring --- src/blockstore/blockstore_sync.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blockstore/blockstore_sync.cpp b/src/blockstore/blockstore_sync.cpp index 0ae284c1..d34398d3 100644 --- a/src/blockstore/blockstore_sync.cpp +++ b/src/blockstore/blockstore_sync.cpp @@ -115,6 +115,7 @@ int blockstore_impl_t::do_sync(blockstore_op_t *op, int base_state) PRIV(op)->lsn = heap->get_completed_lsn(); if (!submit_fsyncs(PRIV(op)->pending_ops)) { + PRIV(op)->lsn = 0; PRIV(op)->wait_detail = 1; PRIV(op)->wait_for = WAIT_SQE; return 0;