[PATCH 05/19] smb: server: make use of smbdirect_socket.send_io.bcredits
Namjae Jeon
linkinjeon at kernel.org
Thu Jan 22 12:47:41 UTC 2026
On Thu, Jan 22, 2026 at 4:51 AM Stefan Metzmacher <metze at samba.org> wrote:
>
> 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 at vger.kernel.org> # 6.18.x
> Cc: Namjae Jeon <linkinjeon at kernel.org>
> Cc: Steve French <smfrench at gmail.com>
> Cc: Tom Talpey <tom at talpey.com>
> Cc: linux-cifs at vger.kernel.org
> Cc: samba-technical at lists.samba.org
> Signed-off-by: Stefan Metzmacher <metze at samba.org>
Acked-by: Namjae Jeon <linkinjeon at kernel.org>
Thanks!
More information about the samba-technical
mailing list