diff options
| author | 2025-10-20 20:36:01 +0200 | |
|---|---|---|
| committer | 2025-10-22 20:11:01 -0500 | |
| commit | 0158e864cca0c98bdc2866f1eb30c66fa21e250c (patch) | |
| tree | 3e4383824503ff1b9e0537244e8eac453372cce6 /tools/docs/lib/parse_data_structs.py | |
| parent | smb: server: simplify sibling_list handling in smb_direct_flush_send_list/send_done (diff) | |
| download | linux-rng-0158e864cca0c98bdc2866f1eb30c66fa21e250c.tar.xz linux-rng-0158e864cca0c98bdc2866f1eb30c66fa21e250c.zip | |
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 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
