]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit856144a620d849e0d4f2ae607733b1467f757286
tree20dc850ec99d6b5b18ce7621bf4e4bcb5d95237f
parent89be6c1e53f4b755f87ed3b5d7fdaedcde9f5e9f
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