]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: do not call allocator's release on empty set
authorIgor Fedotov <ifedotov@suse.com>
Tue, 23 Aug 2022 17:21:48 +0000 (20:21 +0300)
committerJoshua Baergen <jbaergen@digitalocean.com>
Wed, 9 Apr 2025 19:39:46 +0000 (13:39 -0600)
Signed-off-by: Igor Fedotov <ifedotov@croit.io>
src/os/bluestore/BlueStore.cc

index b7aadce0bc8a9f7d557849c2828e0cfe568e58ba..794622ebbbd7dab12acd700affcfc3d287e5669c 100644 (file)
@@ -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;
   }