]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ksmbd: increase SMB3_DEFAULT_TRANS_SIZE from 1MB to 4MB
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 22 Jun 2026 01:16:41 +0000 (10:16 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:06 +0000 (20:15 -0500)
This patch raises `SMB3_DEFAULT_TRANS_SIZE` to 4MB to align it with
`smb2 max read/write`. This allows better I/O negotiation with modern
clients and improves sequential read/write performance on high-speed
networks.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.h

index 3bed676bb5ad42ee95580f372e9d4ee81fbff28c..c2512dbcdec8569a890840dff23e434f7e3f4b68 100644 (file)
@@ -23,7 +23,7 @@
 #define MAX_SMB2_HDR_SIZE 0x78 /* 4 len + 64 hdr + (2*24 wct) + 2 bct + 2 pad */
 
 #define SMB21_DEFAULT_IOSIZE   (1024 * 1024)
-#define SMB3_DEFAULT_TRANS_SIZE        (1024 * 1024)
+#define SMB3_DEFAULT_TRANS_SIZE        (4 * 1024 * 1024)
 #define SMB3_MIN_IOSIZE                (64 * 1024)
 #define SMB3_MAX_IOSIZE                (8 * 1024 * 1024)
 #define SMB3_MAX_MSGSIZE       (4 * 4096)