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>
Wed, 23 Mar 2022 20:20:14 +0000 (15:20 -0500)
commit8708b107604789dbb25057981919c7709828db16
tree2d8bf079550de283a3bb3668aa736e3f418e9d71
parent5e0c969e9ed23745251ce8114778b7fad66df434
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