cifs: reconnect only the connection and not smb session where possible
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 19 Jul 2021 14:14:46 +0000 (14:14 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Jan 2022 02:38:46 +0000 (20:38 -0600)
commit183eea2ee5ba968ca7c31f04a0f01fd3e5c1d014
tree20dc850ec99d6b5b18ce7621bf4e4bcb5d95237f
parent2e0fa298d149e07005504350358066f380f72b52
cifs: reconnect only the connection and not smb session where possible

With the new per-channel bitmask for reconnect, we have an option to
reconnect the tcp session associated with the channel without reconnecting
the smb session. i.e. if there are still channels to operate on, we can
continue to use the smb session and tcon.

However, there are cases where it makes sense to reconnect the smb session
even when there are active channels underneath. For example for
SMB session expiry.

With this patch, we'll have an option to do either, and use the correct
option for specific cases.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/smb2ops.c