Skip to content

Commit 4cf6e11

Browse files
sprasad-microsoftSteve French
authored andcommitted
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 <[email protected]> Reviewed-by: Bharath SM <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 5276869 commit 4cf6e11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fs/smb/client/connect.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,18 @@ static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server)
119119
static void smb2_query_server_interfaces(struct work_struct *work)
120120
{
121121
int rc;
122+
int xid;
122123
struct cifs_tcon *tcon = container_of(work,
123124
struct cifs_tcon,
124125
query_interfaces.work);
125126

126127
/*
127128
* query server network interfaces, in case they change
128129
*/
129-
rc = SMB3_request_interfaces(0, tcon, false);
130+
xid = get_xid();
131+
rc = SMB3_request_interfaces(xid, tcon, false);
132+
free_xid(xid);
133+
130134
if (rc) {
131135
cifs_dbg(FYI, "%s: failed to query server interfaces: %d\n",
132136
__func__, rc);

0 commit comments

Comments
 (0)