linux/fs/smb/common
Stefan Metzmacher d20d1d0b46 smb: smbdirect: introduce smbdirect_socket.send_io.bcredits.*
commit 8e94268b21 upstream.

It turns out that our code will corrupt the stream of
reassabled data transfer messages when we trigger an
immendiate (empty) send.

In order to fix this we'll have a single 'batch' credit per
connection. And code getting that credit is free to use
as much messages until remaining_length reaches 0, then
the batch credit it given back and the next logical send can
happen.

Cc: <stable@vger.kernel.org> # 6.18.x
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-02-16 10:13:29 +01:00
..
smbdirect smb: smbdirect: introduce smbdirect_socket.send_io.bcredits.* 2026-02-16 10:13:29 +01:00
cifs_md4.c fs: smb: common: add missing MODULE_DESCRIPTION() macros 2024-05-27 00:44:23 -05:00
fscc.h smb: move File Attributes definitions into common/fscc.h 2025-12-11 00:53:03 -06:00
Makefile smb: Use arc4 library instead of duplicate arc4 code 2025-09-29 21:21:23 -05:00
md4.h smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
smb1pdu.h smb: move some SMB1 definitions into common/smb1pdu.h 2025-12-16 17:43:01 -06:00
smb2pdu.h smb: move some SMB1 definitions into common/smb1pdu.h 2025-12-16 17:43:01 -06:00
smb2status.h smb: rename to STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP 2025-12-05 17:46:41 -06:00
smbacl.h smb: fix some warnings reported by scripts/checkpatch.pl 2025-11-30 21:11:45 -06:00
smbfsctl.h cifs: Treat unhandled directory name surrogate reparse points as mount directory nodes 2025-02-19 10:42:27 -06:00
smbglob.h smb: move some SMB1 definitions into common/smb1pdu.h 2025-12-16 17:43:01 -06:00