Skip to content

Commit

Permalink
Removing the idle_threads settings. It is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Dec 14, 2024
1 parent 514e649 commit 1f591cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ struct fs_config {
/* multithreaded */
int singlethread;
int clone_fd;
int idle_threads;
int max_threads;
unsigned int max_threads;
};


Expand Down
4 changes: 0 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ static struct fuse_opt fs_opts[] = {
/* if multithreaded */
CRYPT4GH_SQLITE_OPT("-s" , singlethread , 1),
CRYPT4GH_SQLITE_OPT("clone_fd" , clone_fd , 1),
CRYPT4GH_SQLITE_OPT("idle_threads=%u", idle_threads, 0),
CRYPT4GH_SQLITE_OPT("max_threads=%u", max_threads, 0),

CRYPT4GH_SQLITE_OPT("entry_timeout=%lf", entry_timeout, 0),
Expand Down Expand Up @@ -291,9 +290,7 @@ int main(int argc, char *argv[])

config.entry_timeout = DEFAULT_ENTRY_TIMEOUT;
config.attr_timeout = DEFAULT_ATTR_TIMEOUT;

config.max_threads = DEFAULT_MAX_THREADS;
config.idle_threads = UINT_MAX;

config.uid = getuid(); /* current user */
config.gid = getgid(); /* current group */
Expand Down Expand Up @@ -430,7 +427,6 @@ int main(int argc, char *argv[])
D2("Mode: multi-threaded (max threads: %d)", config.max_threads);
struct fuse_loop_config *cf = fuse_loop_cfg_create();
fuse_loop_cfg_set_clone_fd(cf, config.clone_fd);
fuse_loop_cfg_set_idle_threads(cf, config.idle_threads);
fuse_loop_cfg_set_max_threads(cf, config.max_threads);
res = fuse_session_loop_mt(se, cf);
fuse_loop_cfg_destroy(cf);
Expand Down

0 comments on commit 1f591cf

Please sign in to comment.