]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/fuse: set max_idle_threads to the correct value 50668/head
authorZhansong Gao <zhsgao@hotmail.com>
Mon, 28 Nov 2022 09:20:15 +0000 (17:20 +0800)
committerGF <32237768+gf-mse@users.noreply.github.com>
Sat, 25 Mar 2023 09:17:56 +0000 (20:17 +1100)
commit99222915374d0a69e068101fd792378eacda2d9f
tree1dbf9e4fe44e378887c692a367b2f06de96c9f38
parentd6537e121cbbe4fa0085ff42f33a447a9ae2c39e
client/fuse: set max_idle_threads to the correct value

When the version of the libfuse is 3.1 or later,
the fuse worker thread of ceph-fuse keeps recreating
and deleting file or directory will be blocked forever.
It is caused by parameter 'max_idle_threads' being set to 0
and the relevant logic is in function 'fuse_do_work' of libfuse.
Parameter 'max_idle_threads' can be set by function 'fuse_parse_cmdline',
it may be the default value(10 before version 3.12 and -1 after)
or a value set by user. It should not be set to 0.

Fixes: https://tracker.ceph.com/issues/58109
Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
src/client/fuse_ll.cc