cifs: do not query ifaces on smb1 mounts
authorPaulo Alcantara <pc@cjr.nz>
Tue, 10 Jan 2023 22:23:21 +0000 (19:23 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 11 Jan 2023 05:24:14 +0000 (23:24 -0600)
commit22aeb01db7080e18c6aeb4361cc2556c9887099a
tree22dd189fd02e656841875d2f6cc08bcf5bb32ce3
parent39e8db3c860e2678ce5a7d74193925876507c9eb
cifs: do not query ifaces on smb1 mounts

Users have reported the following error on every 600 seconds
(SMB_INTERFACE_POLL_INTERVAL) when mounting SMB1 shares:

CIFS: VFS: \\srv\share error -5 on ioctl to get interface list

It's supported only by SMB2+, so do not query network interfaces on
SMB1 mounts.

Fixes: 6e1c1c08cdf3 ("cifs: periodically query network interfaces from server")
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c