diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-08-22 01:14:38 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-09-28 18:29:51 -0500 |
| commit | 4c4b1d1122fb49a207b86318b0940e09898d8e62 (patch) | |
| tree | 0eb153b27258d1f4e19d59745a1f0e44089a9f26 | |
| parent | smb: client: pass struct smbdirect_socket to smbd_negotiate() (diff) | |
| download | linux-4c4b1d1122fb49a207b86318b0940e09898d8e62.tar.gz linux-4c4b1d1122fb49a207b86318b0940e09898d8e62.zip | |
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>
| -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 2304a5c6f426..e453b998a859 100644 --- a/fs/smb/client/smbdirect.c +++ b/fs/smb/client/smbdirect.c @@ -2345,9 +2345,8 @@ cleanup_entries: * 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; |
