]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: nosharesock should be set on new server
authorShyam Prasad N <sprasad@microsoft.com>
Sun, 21 Nov 2021 16:45:44 +0000 (16:45 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Nov 2021 16:04:49 +0000 (10:04 -0600)
commita9db69860bcb0038d6cd8966bf3fd7251fe3a78c
treebb72ae94155b344dfbbe50dde63587c6258f680e
parent183b8c70348e8991bc1bb81710777587b8549f2a
cifs: nosharesock should be set on new server

Recent fix to maintain a nosharesock state on the
server struct caused a regression. It updated this
field in the old tcp session, and not the new one.

This caused the multichannel scenario to misbehave.

Fixes: 8f2e1caff41f (cifs: nosharesock should not share socket with future sessions)
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c