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>
Sat, 16 Jul 2022 20:03:53 +0000 (15:03 -0500)
commitba8c553e16525e4c61cf89547afaaf4b458cfc91
tree9913fb555c1edb199d000e6af6162f647b16a88b
parent71695f4e2699a50b0f2f69905e2f8683e62489f1
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