]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: dns resolution is needed only for primary channel
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 2 Jun 2025 17:07:16 +0000 (22:37 +0530)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Jun 2025 18:45:10 +0000 (13:45 -0500)
commitb4f60a053a2534c3e510ba0c1f8727566adf8317
treec510a845a11c945137f1f31e334cab2a87f472b7
parentc1846893991f3b4ec8a0cc12219ada153f0814d6
cifs: dns resolution is needed only for primary channel

When calling cifs_reconnect, before the connection to the
server is reestablished, the code today does a DNS resolution and
updates server->dstaddr.

However, this is not necessary for secondary channels. Secondary
channels use the interface list returned by the server to decide
which address to connect to. And that happens after tcon is reconnected
and server interfaces are requested.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c