cifs: pick channel for tcon and tdis
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 10 Jan 2024 10:48:36 +0000 (10:48 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 19 Jan 2024 03:01:04 +0000 (21:01 -0600)
commit268b8b5797becb242013fcd63173eb28c007c8ae
treef43b3b077e691bc06b75a5323d733f3b68636921
parent936eba9cfb5cfbf6a2c762cd163605f2b784e03e
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/smb/client/smb2pdu.c