]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: do not negotiate session if session already exists
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 19 Jul 2021 10:03:38 +0000 (10:03 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 22:21:03 +0000 (16:21 -0600)
commit8e07757bece6e81b0b0910358ebceca3032bc6c7
tree8b5c4218c9370299512aa4a28ac1f46b96c248f7
parent02102744d364c1bca4a0da13c2a72656037f64eb
cifs: do not negotiate session if session already exists

In cifs_get_smb_ses, if we find an existing matching session,
we should not send a negotiate request for the session if a
session reconnect is not necessary.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c