[PATCH][SMB3] do not try to cache root directory if dir leases not supported

Steve French smfrench at gmail.com
Wed Oct 21 05:25:56 UTC 2020


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.

(also added cc: stable v5.1+)



-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-do-not-try-to-cache-root-directory-if-dir-lease.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20201021/b24ed947/0001-smb3-do-not-try-to-cache-root-directory-if-dir-lease.bin>


More information about the samba-technical mailing list