diff options
author | Joseph Dodge <joseph.dodge@veritas.com> | 2017-08-24 14:37:10 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-24 15:17:01 +0200 |
commit | f12d9686d4d673e59b8f561c49996820763220b1 (patch) | |
tree | a06f9f3941f2abe727eb06f5ff1ec70972498208 /lib/cuse_lowlevel.c | |
parent | fc83143867a37e34a51ce5a6d763b46715abf02d (diff) |
Add idle_threads mount option.
Diffstat (limited to 'lib/cuse_lowlevel.c')
-rw-r--r-- | lib/cuse_lowlevel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/cuse_lowlevel.c b/lib/cuse_lowlevel.c index b6aaf77..19b2ab6 100644 --- a/lib/cuse_lowlevel.c +++ b/lib/cuse_lowlevel.c @@ -349,8 +349,12 @@ int cuse_lowlevel_main(int argc, char *argv[], const struct cuse_info *ci, if (se == NULL) return 1; - if (multithreaded) - res = fuse_session_loop_mt(se, 0); + if (multithreaded) { + struct fuse_loop_config config; + config.clone_fd = 0; + config.max_idle_threads = 10; + res = fuse_session_loop_mt(se, &config); + } else res = fuse_session_loop(se); |