summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/connect.c
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2023-10-30 11:00:08 +0000
committerSteve French <stfrench@microsoft.com>2023-10-31 12:38:26 -0500
commit4cf6e1101a25ca5e63d48adf49b0a8a64bae790f (patch)
tree84cf86ba3c57da062739710227d31b9f5e534a93 /fs/smb/client/connect.c
parent52768695d36a44d352e9fb79ba27468a5363ab8d (diff)
downloadlinux-stable-4cf6e1101a25ca5e63d48adf49b0a8a64bae790f.tar.gz
linux-stable-4cf6e1101a25ca5e63d48adf49b0a8a64bae790f.tar.bz2
linux-stable-4cf6e1101a25ca5e63d48adf49b0a8a64bae790f.zip
cifs: add xid to query server interface call
We were passing 0 as the xid for the call to query server interfaces. This is not great for debugging. This change adds a real xid. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Reviewed-by: Bharath SM <bharathsm@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/connect.c')
-rw-r--r--fs/smb/client/connect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
index 7b923e36501b..15a1c86482ed 100644
--- a/fs/smb/client/connect.c
+++ b/fs/smb/client/connect.c
@@ -119,6 +119,7 @@ static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server)
static void smb2_query_server_interfaces(struct work_struct *work)
{
int rc;
+ int xid;
struct cifs_tcon *tcon = container_of(work,
struct cifs_tcon,
query_interfaces.work);
@@ -126,7 +127,10 @@ static void smb2_query_server_interfaces(struct work_struct *work)
/*
* query server network interfaces, in case they change
*/
- rc = SMB3_request_interfaces(0, tcon, false);
+ xid = get_xid();
+ rc = SMB3_request_interfaces(xid, tcon, false);
+ free_xid(xid);
+
if (rc) {
cifs_dbg(FYI, "%s: failed to query server interfaces: %d\n",
__func__, rc);