cifs: do not use tcpStatus after negotiate completes
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 30 Mar 2022 09:22:20 +0000 (09:22 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 24 May 2022 19:08:25 +0000 (14:08 -0500)
commit1a6a41d4cedd9b302e2200e6f0e3c44dbbe13689
tree2a5b6208b361b2b246b2f309ffec61136ef5f145
parent52832252dded19e291a7b8842542ea61d1765f2f
cifs: do not use tcpStatus after negotiate completes

Recent changes to multichannel to allow channel reconnects to
work in parallel and independent of each other did so by
making use of tcpStatus for the connection, and status for the
session. However, this did not take into account the multiuser
scenario, where same connection is used by multiple connections.

However, tcpStatus should be tracked only till the end of
negotiate exchange, and not used for session setup. This change
fixes this.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/smb2pdu.c
fs/cifs/smb2transport.c