aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-09-14 20:56:36 +0200
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-09-19 16:59:13 +0200
commit00c0e9a45bb6fb78e1f13a5604cd70507b4f1e56 (patch)
tree708644737b6db6ac337686eb99a4678c521cc7a2
parent3fe1b25d51e74416acb26aaf495adb524ee61342 (diff)
downloadlibfuse-00c0e9a45bb6fb78e1f13a5604cd70507b4f1e56.tar.gz
passthrough_hp: Use fuse_loop_cfg_set_max_threads()
fuse_loop_cfg_set_idle_threads() was by accident and setting it might cause a performance issue.
-rw-r--r--example/passthrough_hp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc
index 26e3644..bfaada5 100644
--- a/example/passthrough_hp.cc
+++ b/example/passthrough_hp.cc
@@ -1451,7 +1451,7 @@ int main(int argc, char *argv[]) {
loop_config = fuse_loop_cfg_create();
if (fs.num_threads != -1)
- fuse_loop_cfg_set_idle_threads(loop_config, fs.num_threads);
+ fuse_loop_cfg_set_max_threads(loop_config, fs.num_threads);
fuse_loop_cfg_set_clone_fd(loop_config, fs.clone_fd);