From c76078660ec18c8dead2298068835b332e2153f9 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Tue, 23 Aug 2022 20:21:48 +0300 Subject: [PATCH] os/bluestore: do not call allocator's release on empty set Signed-off-by: Igor Fedotov --- src/os/bluestore/BlueStore.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b7aadce0bc8a9..794622ebbbd7d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -13335,6 +13335,7 @@ void BlueStore::_txc_release_alloc(TransContext *txc) bool discard_queued = false; // it's expected we're called with lazy_release_lock already taken! if (unlikely(cct->_conf->bluestore_debug_no_reuse_blocks || + txc->released.size() == 0 || !alloc)) { goto out; } -- 2.39.5