mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
smb: server: pass struct smbdirect_socket to wait_for_send_credits()
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
7f4805b7db
commit
2dc6c7e8ba
|
|
@ -978,10 +978,9 @@ static int wait_for_credits(struct smbdirect_socket *sc,
|
|||
} while (true);
|
||||
}
|
||||
|
||||
static int wait_for_send_credits(struct smb_direct_transport *t,
|
||||
static int wait_for_send_credits(struct smbdirect_socket *sc,
|
||||
struct smbdirect_send_batch *send_ctx)
|
||||
{
|
||||
struct smbdirect_socket *sc = &t->socket;
|
||||
int ret;
|
||||
|
||||
if (send_ctx &&
|
||||
|
|
@ -1173,7 +1172,7 @@ static int smb_direct_post_send_data(struct smb_direct_transport *t,
|
|||
int data_length;
|
||||
struct scatterlist sg[SMBDIRECT_SEND_IO_MAX_SGE - 1];
|
||||
|
||||
ret = wait_for_send_credits(t, send_ctx);
|
||||
ret = wait_for_send_credits(sc, send_ctx);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user