]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
SMB3: query inode number on open via create context
authorSteve French <stfrench@microsoft.com>
Sat, 6 Jul 2019 19:41:38 +0000 (14:41 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 8 Jul 2019 03:37:44 +0000 (22:37 -0500)
commitff2a09e9196e2f9d5edc60d1a68bc3d3649d035b
treef87106734c684c680c8dc4d8dc3165fe4dba9383
parent96d3cca1241d6e56910b74435301e095705e1ebc
SMB3: query inode number on open via create context

We can cut the number of roundtrips on open (may also
help some rename cases as well) by returning the inode
number in the SMB2 open request itself instead of
querying it afterwards via a query FILE_INTERNAL_INFO.
This should significantly improve the performance of
posix open.

Add SMB2_CREATE_QUERY_ON_DISK_ID create context request
on open calls so that when server supports this we
can save a roundtrip for QUERY_INFO on every open.

Follow on patch will add the response processing for
SMB2_CREATE_QUERY_ON_DISK_ID context and optimize
smb2_open_file to avoid the extra network roundtrip
on every posix open. This patch adds the context on
SMB2/SMB3 open requests.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h