smb: client: do not start laundromat thread on nohandlecache
authorPaulo Alcantara <pc@manguebit.com>
Wed, 4 Oct 2023 20:28:38 +0000 (17:28 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 4 Oct 2023 21:21:15 +0000 (16:21 -0500)
commit3b8bb3171571f92eda863e5f78b063604c61f72a
tree5c76b6d439f8a5f704f01b19cdd4308cbdd0ec85
parentcedc019b9f260facfadd20c6c490e403abf292e3
smb: client: do not start laundromat thread on nohandlecache

Honor 'nohandlecache' mount option by not starting laundromat thread
even when SMB server supports directory leases. Do not waste system
resources by having laundromat thread running with no directory
caching at all.

Fixes: 2da338ff752a ("smb3: do not start laundromat thread when dir leases  disabled")
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c