smb3: update default requested iosize to 4MB from 1MB for recent dialects
authorSteve French <stfrench@microsoft.com>
Tue, 25 Sep 2018 20:33:47 +0000 (15:33 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:05 +0000 (21:16 -0500)
commit3d621230b8a0c6616f32b86ec3f0bc3ead9eb5b8
tree66d2eae03e9ab983cd82c407ef6b794760a4a6cb
parent6e4d3bbe92120f8482d31e4138e5fc2983caec3e
smb3: update default requested iosize to 4MB from 1MB for recent dialects

Modern servers often support 8MB as maximum i/o size, and we see some
performance benefits (my testing showed 1 to 13% on write paths,
and 1 to 3% on read paths for increasing the default to 4MB). If server
doesn't support larger i/o size, during negotiate protocol it is already
set correctly to the server's maximum if lower than 4MB.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c