From 00c0e9a45bb6fb78e1f13a5604cd70507b4f1e56 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sat, 14 Sep 2024 20:56:36 +0200 Subject: [PATCH] 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. --- example/passthrough_hp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2