Skip to content

Commit 4d1dffe

Browse files
metze-sambasmfrench
authored andcommitted
smb: server: pass struct smbdirect_socket to manage_keep_alive_before_sending()
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 663b3c3 commit 4d1dffe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,8 @@ static int manage_credits_prior_sending(struct smbdirect_socket *sc)
871871
return new_credits;
872872
}
873873

874-
static int manage_keep_alive_before_sending(struct smb_direct_transport *t)
874+
static int manage_keep_alive_before_sending(struct smbdirect_socket *sc)
875875
{
876-
struct smbdirect_socket *sc = &t->socket;
877876
struct smbdirect_socket_parameters *sp = &sc->parameters;
878877

879878
if (sc->idle.keepalive == SMBDIRECT_KEEPALIVE_PENDING) {
@@ -1028,7 +1027,7 @@ static int smb_direct_create_header(struct smb_direct_transport *t,
10281027
packet->credits_granted = cpu_to_le16(manage_credits_prior_sending(sc));
10291028

10301029
packet->flags = 0;
1031-
if (manage_keep_alive_before_sending(t))
1030+
if (manage_keep_alive_before_sending(sc))
10321031
packet->flags |= cpu_to_le16(SMBDIRECT_FLAG_RESPONSE_REQUESTED);
10331032

10341033
packet->reserved = 0;

0 commit comments

Comments
 (0)