smb: server: pass struct smbdirect_socket to smb_direct_post_send()

This will make it easier to move function to the common code
in future.

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>
This commit is contained in:
Stefan Metzmacher 2025-08-22 15:46:53 +02:00 committed by Steve French
parent 56b442a248
commit ecb56dbc93

View File

@ -890,10 +890,9 @@ static int manage_keep_alive_before_sending(struct smb_direct_transport *t)
return 0;
}
static int smb_direct_post_send(struct smb_direct_transport *t,
static int smb_direct_post_send(struct smbdirect_socket *sc,
struct ib_send_wr *wr)
{
struct smbdirect_socket *sc = &t->socket;
int ret;
atomic_inc(&sc->send_io.pending.count);
@ -942,7 +941,7 @@ static int smb_direct_flush_send_list(struct smb_direct_transport *t,
last->wr.ex.invalidate_rkey = send_ctx->remote_key;
}
ret = smb_direct_post_send(t, &first->wr);
ret = smb_direct_post_send(sc, &first->wr);
if (!ret) {
smb_direct_send_ctx_init(send_ctx,
send_ctx->need_invalidate_rkey,
@ -1162,7 +1161,7 @@ static int post_sendmsg(struct smb_direct_transport *t,
msg->wr.wr_cqe = &msg->cqe;
msg->wr.send_flags = IB_SEND_SIGNALED;
return smb_direct_post_send(t, &msg->wr);
return smb_direct_post_send(sc, &msg->wr);
}
static int smb_direct_post_send_data(struct smb_direct_transport *t,