OSDN Git Service

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)
commitb9ad6b5b687e798746024e5fc4574d8fa8bdfade
treebb72ae94155b344dfbbe50dde63587c6258f680e
parent136057256686de39cc3a07c2e39ef6bc43003ff6
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: c9f1c19cf7c5 (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