]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdcffe449fd6d89bf9959664c5fcc80544860f69e
tree2a5b6208b361b2b246b2f309ffec61136ef5f145
parentca9ba8b57cfe37a6cbf6eb1bef9caf2077d51d3c
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