]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/fuse: set max_idle_threads to the correct value
authorZhansong Gao <zhsgao@hotmail.com>
Mon, 28 Nov 2022 09:20:15 +0000 (17:20 +0800)
committerZhansong Gao <zhsgao@hotmail.com>
Tue, 29 Nov 2022 11:15:33 +0000 (19:15 +0800)
commit70425c75df1161befe4b4f35739d1432aa0e3505
treef527c68f95024e3572c82f6574512937e8c323d8
parenta6cf07f77cdebf2dedcaa341890ee3a42c035dfb
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