Skip to content

Commit d14910b

Browse files
metze-sambasmfrench
authored andcommitted
smb: server: pass struct smbdirect_socket to smb_direct_flush_send_list()
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>
1 parent ecb56db commit d14910b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,11 +916,10 @@ static void smb_direct_send_ctx_init(struct smbdirect_send_batch *send_ctx,
916916
send_ctx->remote_key = remote_key;
917917
}
918918

919-
static int smb_direct_flush_send_list(struct smb_direct_transport *t,
919+
static int smb_direct_flush_send_list(struct smbdirect_socket *sc,
920920
struct smbdirect_send_batch *send_ctx,
921921
bool is_last)
922922
{
923-
struct smbdirect_socket *sc = &t->socket;
924923
struct smbdirect_send_io *first, *last;
925924
int ret;
926925

@@ -988,7 +987,7 @@ static int wait_for_send_credits(struct smb_direct_transport *t,
988987

989988
if (send_ctx &&
990989
(send_ctx->wr_cnt >= 16 || atomic_read(&sc->send_io.credits.count) <= 1)) {
991-
ret = smb_direct_flush_send_list(t, send_ctx, false);
990+
ret = smb_direct_flush_send_list(sc, send_ctx, false);
992991
if (ret)
993992
return ret;
994993
}
@@ -1358,7 +1357,7 @@ static int smb_direct_writev(struct ksmbd_transport *t,
13581357
}
13591358

13601359
done:
1361-
ret = smb_direct_flush_send_list(st, &send_ctx, true);
1360+
ret = smb_direct_flush_send_list(sc, &send_ctx, true);
13621361
if (unlikely(!ret && error))
13631362
ret = error;
13641363

0 commit comments

Comments
 (0)