Skip to content

Commit d9a6d78

Browse files
sprasad-microsoftsmfrench
authored andcommitted
cifs: force interface update before a fresh session setup
During a session reconnect, it is possible that the server moved to another physical server (happens in case of Azure files). So at this time, force a query of server interfaces again (in case of multichannel session), such that the secondary channels connect to the right IP addresses (possibly updated now). Cc: [email protected] Signed-off-by: Shyam Prasad N <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 6e5e64c commit d9a6d78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fs/smb/client/connect.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3849,8 +3849,12 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
38493849
is_binding = !CIFS_ALL_CHANS_NEED_RECONNECT(ses);
38503850
spin_unlock(&ses->chan_lock);
38513851

3852-
if (!is_binding)
3852+
if (!is_binding) {
38533853
ses->ses_status = SES_IN_SETUP;
3854+
3855+
/* force iface_list refresh */
3856+
ses->iface_last_update = 0;
3857+
}
38543858
spin_unlock(&ses->ses_lock);
38553859

38563860
/* update ses ip_addr only for primary chan */

0 commit comments

Comments
 (0)