[PATCH][SMB3] Allow overriding the default persistent handle timeout on opens

Pavel Shilovsky piastryyy at gmail.com
Fri Mar 29 21:53:24 UTC 2019


пт, 29 мар. 2019 г. в 14:32, Steve French via samba-technical
<samba-technical at lists.samba.org>:
>
> V2 fixes 2 sparse warnings (missed cpu_to_le32 in two places)
>
>
> On Thu, Mar 28, 2019 at 10:05 PM Steve French <smfrench at gmail.com> wrote:
> >
> > Reconnecting after server or network failure can be helped by
> > allowing the client to choose the default persistent (or resilient)
> > handle timeout in some use cases.  Today we default to 0 which lets
> > the server pick the default timeout (usually 120 seconds) but this
> > can be problematic for some workloads.  Add the new mount parameter
> > to cifs.ko for SMB3 mounts "handletimeout" which enables the user
> > to override the default handle timeout for persistent (mount
> > option "persistenthandles") or resilient handles (mount option
> > "resilienthandles").  Maximum allowed is 16 minutes (960000 ms).
> > Units for the timeout are expressed in milliseconds. See
> > section 2.2.14.2.12 and 2.2.31.3 of the MS-SMB2 protocol
> > specification for more information.
> >
> > --
> > Thanks,
> >
> > Steve
>
>
>
> --
> Thanks,
>
> Steve

Reviewed-by: Pavel Shilovsky <pshilov at microsoft.com>

--
Best regards,
Pavel Shilovsky



More information about the samba-technical mailing list