diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-10-20 20:36:01 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-10-22 20:11:01 -0500 |
| commit | 0158e864cca0c98bdc2866f1eb30c66fa21e250c (patch) | |
| tree | 3e4383824503ff1b9e0537244e8eac453372cce6 /arch/mips/netlogic/xlp/usb-init.c | |
| parent | a90227462a14f5bdf7dfd4b73c2b75c54834efce (diff) | |
smb: server: make use of smbdirect_socket.send_io.lcredits.*
This introduces logic to prevent on overflow of
the send submission queue with ib_post_send() easier.
As we first get a local credit and then a remote credit
before we mark us as pending.
From reading the git history of the linux smbdirect
implementations in client and server) it was seen
that a peer granted more credits than we requested.
I guess that only happened because of bugs in our
implementation which was active as client and server.
I guess Windows won't do that.
So the local credits make sure we only use the amount
of credits we asked for.
Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
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>
Diffstat (limited to 'arch/mips/netlogic/xlp/usb-init.c')
0 files changed, 0 insertions, 0 deletions
