cifs: fix the connection state transitions with multichannel
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 17 Nov 2021 15:57:22 +0000 (15:57 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jan 2022 17:10:54 +0000 (11:10 -0600)
commita05885ce13bd5ec9602551e32dfb1a4f26bfa542
tree94a1cac46336c579e214e46dc7e34cb519ddbd71
parent3663c9045f51a7ad635a0785adef07c21b79b560
cifs: fix the connection state transitions with multichannel

Recent changes to multichannel required some adjustments in
the way connection states transitioned during/after reconnect.

Also some minor fixes:
1. A pending switch of GlobalMid_Lock to cifs_tcp_ses_lock
2. Relocations of the code that logs reconnect
3. Changed some code in allocate_mid to suit the new scheme

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