]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: ceph-fuse use fuse_session_loop_mt to allow multithreaded operation if "fuse... 1099/head 1165/head
authorMoritz Möller <mm@mxs.de>
Thu, 16 Jan 2014 12:31:16 +0000 (13:31 +0100)
committerMoritz Möller <mm@mxs.de>
Thu, 16 Jan 2014 17:17:59 +0000 (18:17 +0100)
Signed-off-by: Moritz Moeller mm@mxs.de
src/client/fuse_ll.cc
src/common/config_opts.h

index 88f727e454ee4f3a16bca45a655170051fdadf01..c8a3a4cac3b703ddc1d1b7445dfde974a9c2e146 100644 (file)
@@ -769,7 +769,11 @@ done:
 
 int CephFuse::Handle::loop()
 {
-  return fuse_session_loop(se);
+  if (client->cct->_conf->fuse_multithreaded) {
+    return fuse_session_loop_mt(se);
+  } else {
+    return fuse_session_loop(se);
+  }
 }
 
 uint64_t CephFuse::Handle::fino_snap(uint64_t fino)
index 0a452fec46bbbf59704df1fd574052db5ae8bb4c..0d1a4f26ce389a59a9680017d2989109a5a0a037 100644 (file)
@@ -269,6 +269,7 @@ OPTION(fuse_default_permissions, OPT_BOOL, true)
 OPTION(fuse_big_writes, OPT_BOOL, true)
 OPTION(fuse_atomic_o_trunc, OPT_BOOL, true)
 OPTION(fuse_debug, OPT_BOOL, false)
+OPTION(fuse_multithreaded, OPT_BOOL, false)
 
 OPTION(crush_location, OPT_STR, "")       // whitespace-separated list of key=value pairs describing crush location