From: Igor Fedotov Date: Tue, 23 Aug 2022 17:21:48 +0000 (+0300) Subject: os/bluestore: do not call allocator's release on empty set X-Git-Tag: v18.2.8~10^2~264^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c76078660ec18c8dead2298068835b332e2153f9;p=ceph.git os/bluestore: do not call allocator's release on empty set Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b7aadce0bc8a..794622ebbbd7 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; }