Skip to content

Commit 936eba9

Browse files
sprasad-microsoftsmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d7851dc commit 936eba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
151151
return -EOPNOTSUPP;
152152

153153
ses = tcon->ses;
154-
server = ses->server;
154+
server = cifs_pick_channel(ses);
155155
cfids = tcon->cfids;
156156

157157
if (!server->ops->new_lease_key)

0 commit comments

Comments
 (0)