From 5572c250500614c62ba0f38d7249048081f48e5b Mon Sep 17 00:00:00 2001 From: chenrenhui Date: Tue, 20 May 2025 07:00:41 +0000 Subject: [PATCH] set default value of max_idle_threads when it is null --- ...e-of-max_idle_threads-when-it-is-nul.patch | 25 +++++++++++++++++++ fuse3.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0011-set-default-value-of-max_idle_threads-when-it-is-nul.patch diff --git a/0011-set-default-value-of-max_idle_threads-when-it-is-nul.patch b/0011-set-default-value-of-max_idle_threads-when-it-is-nul.patch new file mode 100644 index 0000000..e555a4e --- /dev/null +++ b/0011-set-default-value-of-max_idle_threads-when-it-is-nul.patch @@ -0,0 +1,25 @@ +From dfda9682da420695f491c0bb7ca8b2623cac5888 Mon Sep 17 00:00:00 2001 +From: chenrenhui +Date: Tue, 20 May 2025 06:55:56 +0000 +Subject: [PATCH] set default value of max_idle_threads when it is null + +--- + lib/fuse_loop_mt.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c +index ba98212..a369504 100644 +--- a/lib/fuse_loop_mt.c ++++ b/lib/fuse_loop_mt.c +@@ -319,6 +319,8 @@ int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *co + mt.error = 0; + mt.numworker = 0; + mt.numavail = 0; ++ if (!config->max_idle_threads) ++ config->max_idle_threads = 10; + mt.max_idle = config->max_idle_threads; + mt.main.thread_id = pthread_self(); + mt.main.prev = mt.main.next = &mt.main; +-- +2.33.0 + diff --git a/fuse3.spec b/fuse3.spec index cacd602..4588628 100644 --- a/fuse3.spec +++ b/fuse3.spec @@ -2,7 +2,7 @@ Name: fuse3 Version: %{fuse3ver} -Release: 10 +Release: 11 Summary: User space File System of fuse3 License: GPL+ and LGPLv2+ URL: http://fuse.sf.net @@ -19,6 +19,7 @@ Patch7: 0007-Fix-memory-leak-in-high-level-API-781.patch Patch8: 0008-Fix-file-leak-in-high-level-API.patch Patch9: 0009-Fix-loading-of-FUSE-modules.patch Patch10: 0010-fuse3-support-fastpath.patch +Patch11: 0011-set-default-value-of-max_idle_threads-when-it-is-nul.patch BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build @@ -109,6 +110,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir} %{_mandir}/man8/* %changelog +* Tue May 20 2025 chenrenhui -3.10.5-11 +- set default value of max_idle_threads + * Tue May 6 2025 chenrenhui -3.10.5-10 - support fastpath -- Gitee