]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
smb3: do not try to cache root directory if dir leases not supported
authorSteve French <stfrench@microsoft.com>
Wed, 21 Oct 2020 05:15:42 +0000 (00:15 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 21 Oct 2020 22:57:07 +0000 (17:57 -0500)
commit3c6e65e679182d55779ef6f8582f0945af4319b0
treed20ad78e56e3651b5b527707d113b908c15ab35f
parent3c3317daef0afa0cd541fc9c1bfd6ce8bbf1129a
smb3: do not try to cache root directory if dir leases not supported

To servers which do not support directory leases (e.g. Samba)
it is wasteful to try to open_shroot (ie attempt to cache the
root directory handle).  Skip attempt to open_shroot when
server does not indicate support for directory leases.

Cuts the number of requests on mount from 17 to 15, and
cuts the number of requests on stat of the root directory
from 4 to 3.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org> # v5.1+
fs/cifs/connect.c