]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: drop SMR 64K min_alloc_size restriction
authorSage Weil <sage@newdream.net>
Fri, 3 Sep 2021 16:34:06 +0000 (11:34 -0500)
committerSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 13:55:57 +0000 (09:55 -0400)
used_blocks is only for fsck.

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/bluestore/BlueStore.cc

index dd4d8f42d596e27162ae4144017aecd59db68db6..06adf8f55a9e339dbaec014c24821d8ff12f7dc6 100644 (file)
@@ -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) {