diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-08-22 10:19:28 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-09-28 18:29:50 -0500 |
| commit | 8a9919b2bf8199206e5c5e223e2dd3d04b93a4e2 (patch) | |
| tree | baa6b6fffadd4c2933d3e63c48f187d732f87b89 | |
| parent | 869bb7284fb2976b59ad29455cddd44bce0976f7 (diff) | |
| download | linux-8a9919b2bf8199206e5c5e223e2dd3d04b93a4e2.tar.gz linux-8a9919b2bf8199206e5c5e223e2dd3d04b93a4e2.zip | |
smb: client: pass struct smbdirect_socket to smbd_post_send()
This will make it easier to move function to the common code
in future.
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
| -rw-r--r-- | fs/smb/client/smbdirect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c index adebee32442a..dc3b2f0aab06 100644 --- a/fs/smb/client/smbdirect.c +++ b/fs/smb/client/smbdirect.c @@ -1003,10 +1003,9 @@ static int manage_keep_alive_before_sending(struct smbd_connection *info) } /* Post the send request */ -static int smbd_post_send(struct smbd_connection *info, +static int smbd_post_send(struct smbdirect_socket *sc, struct smbdirect_send_io *request) { - struct smbdirect_socket *sc = &info->socket; struct ib_send_wr send_wr; int rc, i; @@ -1169,7 +1168,7 @@ wait_send_queue: request->sge[0].length = header_length; request->sge[0].lkey = sc->ib.pd->local_dma_lkey; - rc = smbd_post_send(info, request); + rc = smbd_post_send(sc, request); if (!rc) return 0; |
