cifs: do not send tree disconnect to ipc shares
authorPaulo Alcantara <pc@cjr.nz>
Fri, 4 Jun 2021 22:25:27 +0000 (19:25 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:16 +0000 (21:28 -0500)
commitf3191fc8004d6d200d850395bbad8dab8f367945
tree08bb7a1d2da2a9acb58e0e4a376ac76291e74131
parent966a3cb7c7db786452a87afdc3b48858fc4d4d6b
cifs: do not send tree disconnect to ipc shares

On session close, the IPC is closed and the server must release all
tcons of the session.  It doesn't matter if we send a ipc close or
not.

Besides, it will make the server to not close durable and resilient
files on session close, as specified in MS-SMB2 3.3.5.6 Receiving an
SMB2 LOGOFF Request.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c