diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-01-17 05:55:39 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-01 13:41:34 +0100 |
commit | 2b70d5db3891555be75c9a463e24491dd9df84e6 (patch) | |
tree | ce47f0c55bea6ccd1c8d041d3aedf8df2a43d519 /fs | |
parent | bd508f96b5fef96d8a0ce9cbb211d82bcfc2341f (diff) | |
download | linux-stable-2b70d5db3891555be75c9a463e24491dd9df84e6.tar.gz linux-stable-2b70d5db3891555be75c9a463e24491dd9df84e6.tar.bz2 linux-stable-2b70d5db3891555be75c9a463e24491dd9df84e6.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/cached_dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c index d64a306a414b..971892620504 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c @@ -151,7 +151,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, return -EOPNOTSUPP; ses = tcon->ses; - server = ses->server; + server = cifs_pick_channel(ses); cfids = tcon->cfids; if (!server->ops->new_lease_key) |