]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: do not share tcp servers with dfs mounts
authorPaulo Alcantara <pc@cjr.nz>
Fri, 4 Jun 2021 22:25:33 +0000 (19:25 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commitf3c852b0b0fc0e4ecabbf2e8480c2a088d54b588
treef27f88539bb38f7c80cdd3cd812a6886294e3d13
parentc950fc7af9a7c20b60d7c1ffe5fd4d982ec8cd6c
cifs: do not share tcp servers with dfs mounts

It isn't enough to have unshared tcons because multiple DFS mounts can
connect to same target server and failover to different servers, so we
can't use a single tcp server for such cases.

For the simplest solution, use nosharesock option to achieve that.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c