passthrough_hp: Use fuse_loop_cfg_set_max_threads()
authorBernd Schubert <bschubert@ddn.com>
Sat, 14 Sep 2024 18:56:36 +0000 (20:56 +0200)
committerBernd Schubert <bernd.schubert@fastmail.fm>
Thu, 19 Sep 2024 14:59:13 +0000 (16:59 +0200)
fuse_loop_cfg_set_idle_threads() was by accident and
setting it might cause a performance issue.

example/passthrough_hp.cc

index 26e3644b2a062c87e533cd2aeb04a8d1f50a549a..bfaada5c64c442a321f54fcfd49faf8eccd4bd29 100644 (file)
@@ -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);