cifs: change smb2_query_info_compound to use a cached fid, if available
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 22 Mar 2022 06:29:03 +0000 (16:29 +1000)
committerSteve French <stfrench@microsoft.com>
Thu, 21 Jul 2022 15:40:01 +0000 (10:40 -0500)
commit83cc43c554b8f7df8f2fb374374101a59dc78592
treee02d6a7d3d385d4dc9a4ac7ed57b04a6c2e63214
parentfd926331d080a09622373e91334dafd5595724f7
cifs: change smb2_query_info_compound to use a cached fid, if available

This will reduce the number of Open/Close we send on the wire and replace
a Open/GetInfo/Close compound with just a simple GetInfo request
IF we have a cached handle for the object.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c