From 54470fe14b216f182aa3270e5dfd9528af42a04f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 6 Sep 2021 16:00:18 -0500 Subject: [PATCH] os/bluestore: do not use null freelist with SMR Signed-off-by: Sage Weil --- src/os/bluestore/BlueStore.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b8965199107..ed36f945fd6 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6084,7 +6084,11 @@ int BlueStore::_open_db_and_around(bool read_only, bool to_repair) } // when function is called in repair mode (to_repair=true) we skip db->open()/create() - if (!read_only && !to_repair && cct->_conf->bluestore_allocation_from_file) { + if (!read_only && !to_repair && cct->_conf->bluestore_allocation_from_file +#ifdef HAVE_LIBZBD + && !bdev->is_smr() +#endif + ) { dout(5) << __func__ << "::NCB::Commit to Null-Manager" << dendl; commit_to_null_manager(); } -- 2.39.5