]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: add config option to disable the wbthrottle
authorSamuel Just <sam.just@inktank.com>
Thu, 22 Aug 2013 18:19:37 +0000 (11:19 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 26 Aug 2013 17:32:27 +0000 (10:32 -0700)
Backport: dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/os/FileStore.cc

index 8940512169826522a0e50c20f057bc21d6216d14..6453e5a207c36463917e78b8d06d9be6752529a4 100644 (file)
@@ -524,6 +524,7 @@ OPTION(osd_max_attr_size, OPT_U64, 65536)
 OPTION(filestore, OPT_BOOL, false)
 
 /// filestore wb throttle limits
+OPTION(filestore_wbthrottle_enable, OPT_BOOL, true)
 OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64, 41943040)
 OPTION(filestore_wbthrottle_btrfs_bytes_hard_limit, OPT_U64, 419430400)
 OPTION(filestore_wbthrottle_btrfs_ios_start_flusher, OPT_U64, 500)
index 814073736859d55737bc021ad0731366c049e938..d4d540df876055e37ec104e8de366654809c78a0 100644 (file)
@@ -2600,7 +2600,8 @@ int FileStore::_write(coll_t cid, const hobject_t& oid,
     r = bl.length();
 
   // flush?
-  if (!replaying)
+  if (!replaying &&
+      g_conf->filestore_wbthrottle_enable)
     wbthrottle.queue_wb(fd, oid, offset, len, replica);
   lfn_close(fd);