]> 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)
commitf19f6b27b52f4f79154529d1bef75c644c4056e1
treebb72ae94155b344dfbbe50dde63587c6258f680e
parentbdf2074c36ff2ec1e88ae41beb6e104f4e7f0cff
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: e8c317dbf8dc (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