smb3: add rasize mount parameter to improve readahead performance
authorSteve French <stfrench@microsoft.com>
Sun, 25 Apr 2021 02:46:23 +0000 (21:46 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 26 Apr 2021 04:59:08 +0000 (23:59 -0500)
commitb8d64f8ced62f9ace9d25c338be1043b8367dd34
treedcdda7c0b18b6d74bc0ea6ee75f88ec95d16acc2
parent423333bcba248c6b65e7eac1a0b8eef57c9eac72
smb3: add rasize mount parameter to improve readahead performance

In some cases readahead of more than the read size can help
(to allow parallel i/o of read ahead which can improve performance).

Ceph introduced a mount parameter "rasize" to allow controlling this.
Add mount parameter "rasize" to allow control of amount of readahead
requested of the server. If rasize not set, rasize defaults to
negotiated rsize as before.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/fs_context.c
fs/cifs/fs_context.h