[PATCH] cifs: improve read performance for page size 64KB & cache=strict & vers=2.1+

Jones Syue jonessyue at qnap.com
Mon Apr 13 02:23:25 UTC 2020


Hello Pavel

Thanks for kindly reviewing!
Please find the attached v2.patch.

--
Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.


On Sat, Apr 11, 2020 at 2:25 AM Pavel Shilovsky <piastryyy at gmail.com> wrote:
>
> Hi Jones,
>
> Thanks for the patch!
>
> It will work although it is probably a little bit cleaner to
> initialize server->max_read to server->maxBuf for SMB1 and use the
> server->max_read in the readpages condition check instead.
>
> @Others, thoughts?
>
> --
> Best regards,
> Pavel Shilovsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2.patch
Type: application/octet-stream
Size: 4908 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20200413/89757642/v2.obj>


More information about the samba-technical mailing list