]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: rename buffered_io option 10766/head
authorSage Weil <sage@redhat.com>
Wed, 17 Aug 2016 16:35:43 +0000 (12:35 -0400)
committerSage Weil <sage@redhat.com>
Thu, 18 Aug 2016 18:23:50 +0000 (14:23 -0400)
This is not a bluestore option.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/os/bluestore/BlueFS.cc

index 0d54ca63773b3af58112c2a9e6603a660564885d..5f354ddc7ce0f9f207e03b5518c353ab0359abf8 100644 (file)
@@ -934,6 +934,7 @@ OPTION(bluefs_log_compact_min_ratio, OPT_FLOAT, 5.0)      // before we consider
 OPTION(bluefs_log_compact_min_size, OPT_U64, 16*1048576)  // before we consider
 OPTION(bluefs_min_flush_size, OPT_U64, 65536)  // ignore flush until its this big
 OPTION(bluefs_compact_log_sync, OPT_BOOL, false)  // sync or async log compaction?
+OPTION(bluefs_buffered_io, OPT_BOOL, false)
 
 OPTION(bluestore_bluefs, OPT_BOOL, true)
 OPTION(bluestore_bluefs_env_mirror, OPT_BOOL, false) // mirror to normal Env for debug
@@ -942,7 +943,6 @@ OPTION(bluestore_bluefs_min_ratio, OPT_FLOAT, .02)  // min fs free / total free
 OPTION(bluestore_bluefs_max_ratio, OPT_FLOAT, .90)  // max fs free / total free
 OPTION(bluestore_bluefs_gift_ratio, OPT_FLOAT, .02) // how much to add at a time
 OPTION(bluestore_bluefs_reclaim_ratio, OPT_FLOAT, .20) // how much to reclaim at a time
-OPTION(bluestore_bluefs_buffered_io, OPT_BOOL, false)
 // If you want to use spdk driver, you need to specify NVMe serial number here
 // with "spdk:" prefix.
 // Users can use 'lspci -vvv -d 8086:0953 | grep "Device Serial Number"' to
index 9976b4ed21932a9a2af7ec31d2a0f95532b651ef..992e49a897892cde53e310cb0805e4f461fd7649 100644 (file)
@@ -840,7 +840,7 @@ int BlueFS::_read_random(
              << std::hex << x_off << "~" << l << std::dec
              << " of " << *p << dendl;
     int r = bdev[p->bdev]->read_random(p->offset + x_off, l, out,
-                                      g_conf->bluestore_bluefs_buffered_io);
+                                      g_conf->bluefs_buffered_io);
     assert(r == 0);
     off += l;
     len -= l;
@@ -901,7 +901,7 @@ int BlueFS::_read(
                << std::hex << x_off << "~" << l << std::dec
                << " of " << *p << dendl;
       int r = bdev[p->bdev]->read(p->offset + x_off, l, &buf->bl, ioc[p->bdev],
-                                 g_conf->bluestore_bluefs_buffered_io);
+                                 g_conf->bluefs_buffered_io);
       assert(r == 0);
     }
     left = buf->get_buf_remaining(off);
@@ -1474,7 +1474,7 @@ int BlueFS::_flush_range(FileWriter *h, uint64_t offset, uint64_t length)
       t.append_zero(super.block_size - tail);
     }
     bdev[p->bdev]->aio_write(p->offset + x_off, t, h->iocv[p->bdev],
-                            g_conf->bluestore_bluefs_buffered_io);
+                            g_conf->bluefs_buffered_io);
     bloff += x_len;
     length -= x_len;
     ++p;