mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 17:06:24 -04:00
smb: client: pass struct smbdirect_socket to get_mr()
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>
This commit is contained in:
committed by
Steve French
parent
2c6b999a90
commit
4c4b1d1122
@@ -2345,9 +2345,8 @@ static int allocate_mr_list(struct smbdirect_socket *sc)
|
||||
* issuing I/O trying to get MR at the same time, mr_list_lock is used to
|
||||
* protect this situation.
|
||||
*/
|
||||
static struct smbdirect_mr_io *get_mr(struct smbd_connection *info)
|
||||
static struct smbdirect_mr_io *get_mr(struct smbdirect_socket *sc)
|
||||
{
|
||||
struct smbdirect_socket *sc = &info->socket;
|
||||
struct smbdirect_mr_io *ret;
|
||||
int rc;
|
||||
again:
|
||||
@@ -2428,7 +2427,7 @@ struct smbdirect_mr_io *smbd_register_mr(struct smbd_connection *info,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
smbdirect_mr = get_mr(info);
|
||||
smbdirect_mr = get_mr(sc);
|
||||
if (!smbdirect_mr) {
|
||||
log_rdma_mr(ERR, "get_mr returning NULL\n");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user