mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 05:12:01 +02:00
smb: server: pass struct smbdirect_socket to smb_direct_prepare_negotiation()
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:
parent
56bcc18d24
commit
7cb0ab73f8
|
|
@ -1766,11 +1766,10 @@ static int smb_direct_accept_client(struct smbdirect_socket *sc)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int smb_direct_prepare_negotiation(struct smb_direct_transport *t)
|
||||
static int smb_direct_prepare_negotiation(struct smbdirect_socket *sc)
|
||||
{
|
||||
struct smbdirect_socket *sc = &t->socket;
|
||||
int ret;
|
||||
struct smbdirect_recv_io *recvmsg;
|
||||
int ret;
|
||||
|
||||
WARN_ON_ONCE(sc->status != SMBDIRECT_SOCKET_CREATED);
|
||||
sc->status = SMBDIRECT_SOCKET_RDMA_CONNECT_NEEDED;
|
||||
|
|
@ -2131,7 +2130,7 @@ static int smb_direct_connect(struct smb_direct_transport *st)
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = smb_direct_prepare_negotiation(st);
|
||||
ret = smb_direct_prepare_negotiation(sc);
|
||||
if (ret) {
|
||||
pr_err("Can't negotiate: %d\n", ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user