]> www.infradead.org Git - users/dwmw2/linux.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)
committerSteve French <stfrench@microsoft.com>
Fri, 19 Jan 2024 03:01:04 +0000 (21:01 -0600)
commit936eba9cfb5cfbf6a2c762cd163605f2b784e03e
treebbb89bc7021f2342c57c612da0dca54aaf736c9b
parentd7851dc13d87688e2c532f0e77c2bd29f902d6cf
cifs: open_cached_dir should not rely on primary channel

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