From: Moritz Möller Date: Thu, 16 Jan 2014 12:31:16 +0000 (+0100) Subject: client: ceph-fuse use fuse_session_loop_mt to allow multithreaded operation if "fuse... X-Git-Tag: v0.78~235^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ec5f7a5eda934354c5a9313ef83165c03f0590be;p=ceph.git client: ceph-fuse use fuse_session_loop_mt to allow multithreaded operation if "fuse multithreaded = 1". Signed-off-by: Moritz Moeller mm@mxs.de --- diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 88f727e454ee..c8a3a4cac3b7 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -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) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 0a452fec46bb..0d1a4f26ce38 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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