]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: open_cached_dir should not rely on primary channel
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 17 Jan 2024 05:55:39 +0000 (05:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:48 +0000 (13:34 +0100)
commit8d76726eeb11b6a15762a76f5ec915afb297f0f8
treeb29fd4a374ea7d14b5d03e593152336205085b5e
parent36bc5040c863b44af06094b22f1e50059227b9cb
cifs: open_cached_dir should not rely on primary channel

[ Upstream commit 936eba9cfb5cfbf6a2c762cd163605f2b784e03e ]

open_cached_dir today selects ses->server a.k.a primary channel
to send requests. When multichannel is used, the primary
channel maybe down. So it does not make sense to rely only
on that channel.

This fix makes this function pick a channel with the standard
helper function cifs_pick_channel.

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/cached_dir.c