+10
−11
Loading
cifs_pick_channel uses (start % chan_count) when channels are equally loaded, but that can return a channel that failed the eligibility checks. Drop the fallback and return the scan-selected channel instead. If none is eligible, keep the existing behavior of using the primary channel. Signed-off-by:Henrique Carvalho <henrique.carvalho@suse.com> Acked-by:
Paulo Alcantara (Red Hat) <pc@manguebit.org> Acked-by:
Meetakshi Setiya <msetiya@microsoft.com> Reviewed-by:
Shyam Prasad N <sprasad@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by:
Steve French <stfrench@microsoft.com>