cifs: cifs_pick_channel should try selecting active channels
authorShyam Prasad N <sprasad@microsoft.com>
Sun, 21 Jan 2024 03:32:43 +0000 (03:32 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Jan 2024 01:03:46 +0000 (19:03 -0600)
commitfc43a8ac396d302ced1e991e4913827cf72c8eb9
treeef4bb43fff68297be3fd0018817f428cf2f8c14b
parent966cc171c8be4fbeae1bf166d264e0bfb09e141c
cifs: cifs_pick_channel should try selecting active channels

cifs_pick_channel today just selects a channel based
on the policy of least loaded channel. However, it
does not take into account if the channel needs
reconnect. As a result, we can have failures in send
that can be completely avoided.

This change doesn't make a channel a candidate for
this selection if it needs reconnect.

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