cifs: pick channel for tcon and tdis
authorSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:53:29 +0000 (16:53 -0600)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:53:29 +0000 (16:53 -0600)
commit01a6008199dfed09cb7a726b291d19dd69293531
treef7adfe1bd5e5c2305fc75613015f09abcfe31f1b
parent8e5d6dfc0af482fdaf4bc7d10f8c6e0359472d62
cifs: pick channel for tcon and tdis

Today, the tree connect and disconnect requests are
sent on the primary channel only. However, the new
multichannel logic allows the session to remain active
even if one of the channels are alive. So a tree connect
can now be triggered during a reconnect on any of
its channels.

This change changes tcon and tdis calls to pick an
active channel instead of the first one.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c