[PATCH] Fix max_threads command line parameter propagation
authorSarath Lakshman <sarath@couchbase.com>
Sat, 11 Mar 2023 11:28:31 +0000 (16:58 +0530)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 18 Apr 2023 21:07:15 +0000 (23:07 +0200)
The fuse_main_real() method doesn't apply the max_threads parameter
parsed through the commandline arguments. This commit fixes the wiring
of max_threads argument.

Gbp-Pq: Name Fix-max_threads-command-line-parameter-propagation.patch

lib/helper.c

index b270b85750e9e13e1ca699fe069d8800da44ace0..f079ae22182e3cbe188eaaeaf505e50c0980fdfb 100644 (file)
@@ -377,6 +377,7 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op,
                fuse_loop_cfg_set_clone_fd(loop_config, opts.clone_fd);
 
                fuse_loop_cfg_set_idle_threads(loop_config, opts.max_idle_threads);
+               fuse_loop_cfg_set_max_threads(loop_config, opts.max_threads);
                res = fuse_loop_mt(fuse, loop_config);
        }
        if (res)