cifs: avoid unnecessary iteration of tcp sessions
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 28 Oct 2022 10:01:45 +0000 (10:01 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 5 Nov 2022 04:34:40 +0000 (23:34 -0500)
commit23d9b9b757e8007204d8f71448ab55d5ef2ae8e5
treef7871d23ecefbb91818d988b79b7414e66f6dbc1
parent8abcaeaed38109e5ccaf40218e0e9e387f07bfe6
cifs: avoid unnecessary iteration of tcp sessions

In a few places, we do unnecessary iterations of
tcp sessions, even when the server struct is provided.

The change avoids it and uses the server struct provided.

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/smb2misc.c
fs/cifs/smb2ops.c
fs/cifs/smb2transport.c