Skip to content

Commit 6284e46

Browse files
Paulo Alcantarasmfrench
authored andcommitted
cifs: use DFS root session instead of tcon ses
Use DFS root session whenever possible to get new DFS referrals otherwise we might end up with an IPC tcon (tcon->ses->tcon_ipc) that doesn't respond to them. It should be safe accessing @ses->dfs_root_ses directly in cifs_inval_name_dfs_link_error() as it has same lifetime as of @tcon. Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Cc: [email protected] # 6.2 Signed-off-by: Steve French <[email protected]>
1 parent f446a63 commit 6284e46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/misc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,7 @@ int cifs_inval_name_dfs_link_error(const unsigned int xid,
12621262
* removing cached DFS targets that the client would eventually
12631263
* need during failover.
12641264
*/
1265+
ses = CIFS_DFS_ROOT_SES(ses);
12651266
if (ses->server->ops->get_dfs_refer &&
12661267
!ses->server->ops->get_dfs_refer(xid, ses, ref_path, &refs,
12671268
&num_refs, cifs_sb->local_nls,

0 commit comments

Comments
 (0)