]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: add bluefs_sync_write option 14510/head
authorSage Weil <sage@redhat.com>
Thu, 4 May 2017 13:09:25 +0000 (08:09 -0500)
committerSage Weil <sage@redhat.com>
Thu, 4 May 2017 13:09:25 +0000 (08:09 -0500)
commit43d60b5d4bc4d9840b7ddd0ea68482e300a7e30f
treec857a3fc7228bff2f9fc4dc1156ea5deb024490e
parent041e3085205adfacc5e56a28f53aa94a8755c2d4
os/bluestore/BlueFS: add bluefs_sync_write option

If we have a fast device we can do our writes using synchronous
IO instead of aio.  Most of the time rocksdb is doing sync writes
anyway (write and then fsync from the same thread).

Note that this might not be the case when using the
bluestore_sync_submit_transaction mode... that probably should
not be combined with bluefs_sync_write.

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