From: Sage Weil Date: Fri, 3 Sep 2021 16:34:06 +0000 (-0500) Subject: os/bluestore: drop SMR 64K min_alloc_size restriction X-Git-Tag: v17.1.0~535^2~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c002b24ca54b10743d16df4ac739eab973da2297;p=ceph-ci.git os/bluestore: drop SMR 64K min_alloc_size restriction used_blocks is only for fsck. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index dd4d8f42d59..06adf8f55a9 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5532,16 +5532,6 @@ int BlueStore::_create_alloc() if (freelist_type == "zoned") { allocator_type = "zoned"; - // At least for now we want to use large min_alloc_size with HM-SMR drives. - // Populating used_blocks bitset on a debug build of ceph-osd takes about 5 - // minutes with a 14 TB HM-SMR drive and 4 KiB min_alloc_size. - if (min_alloc_size < 64 * 1024) { - dout(1) << __func__ << " The drive is HM-SMR but min_alloc_size is " - << min_alloc_size << ". " - << "Please set to at least 64 KiB." << dendl; - return -EINVAL; - } - // We don't want to defer writes with HM-SMR because it violates sequential // write requirement. if (prefer_deferred_size) {