]> git.ipfire.org Git - thirdparty/linux.git/commit
smb3: do not start laundromat thread when dir leases
authorSteve French <stfrench@microsoft.com>
Tue, 19 Sep 2023 16:35:53 +0000 (11:35 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 19 Sep 2023 18:32:02 +0000 (13:32 -0500)
commit2da338ff752a2789470d733111a5241f30026675
tree06b78b25341ba966454dc9a641c825e5f42abf80
parente3603ccf4a35fdf433ee7b60bb7cfb598f19c8fa
smb3: do not start laundromat thread when dir leases
 disabled

When no directory lease support, or for IPC shares where directories
can not be opened, do not start an unneeded laundromat thread for
that mount (it wastes resources).

Fixes: d14de8067e3f ("cifs: Add a laundromat thread for cached directories")
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/misc.c
fs/smb/client/smb2pdu.c