]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: make use of smbdirect_socket.send_io.lcredits.*
authorStefan Metzmacher <metze@samba.org>
Mon, 20 Oct 2025 18:36:02 +0000 (20:36 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Oct 2025 01:11:05 +0000 (20:11 -0500)
commit123111ea6226c5302cc192028e7ae923c44e1382
treef52c7ca11cde1f59472f6f7a5ce13b5314c5532a
parent0158e864cca0c98bdc2866f1eb30c66fa21e250c
smb: client: make use of smbdirect_socket.send_io.lcredits.*

This makes the 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.

For now we'll keep the logic around smbdirect_socket.send_io.pending.*,
but that will likely change or be removed completely.

The server will get a similar logic soon, so
we'll be able to share the send code in future.

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>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c