]> 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)
commit4bc7dcf6163ef08fffbfeaebc4f11ce84c32bcb0
tree20dc850ec99d6b5b18ce7621bf4e4bcb5d95237f
parentb135b03e8ad0cbd63bce5d86b2cd8ad835e8e59d
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