From: Bernd Schubert Date: Sat, 14 Sep 2024 18:56:36 +0000 (+0200) Subject: passthrough_hp: Use fuse_loop_cfg_set_max_threads() X-Git-Tag: fuse-3.17.1-rc0~71 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=00c0e9a45bb6fb78e1f13a5604cd70507b4f1e56;p=qemu-gpiodev%2Flibfuse.git 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. --- 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);