]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:49 +0000 (13:34 +0100)
commit59e04d39fc2998ad1eb6eef2e7fed84d98143bbe
tree8045a3c8ef7598348ddffbfb8bce7070f1bdd0a0
parent8fbefa7a755d3481c80d621aec1f8feb447a18c1
cifs: cifs_pick_channel should try selecting active channels

[ Upstream commit fc43a8ac396d302ced1e991e4913827cf72c8eb9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/transport.c