diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2022-02-08 20:15:17 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-02-09 05:13:48 +0100 |
commit | 52492ff5c583036306bc422a83e246c971af387a (patch) | |
tree | da6fa1518b6254dcc8bc1223ae04f50b740acaec /fs/cifs/dfs_cache.c | |
parent | cifs: call cifs_reconnect when a connection is marked (diff) | |
download | linux-52492ff5c583036306bc422a83e246c971af387a.tar.xz linux-52492ff5c583036306bc422a83e246c971af387a.zip |
cifs: call helper functions for marking channels for reconnect
cifs_mark_tcp_ses_conns_for_reconnect helper function is now
meant to be used by any of the threads to mark a channel
(or all the channels) for reconnect.
Replace all such manual changes to tcpStatus to use this
helper function, which takes care that the right channels,
smb sessions and tcons are marked for reconnect.
Also includes one line minor change
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dfs_cache.c')
-rw-r--r-- | fs/cifs/dfs_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index dd9643751671..831f42458bf6 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -1355,7 +1355,7 @@ static void mark_for_reconnect_if_needed(struct cifs_tcon *tcon, struct dfs_cach } cifs_dbg(FYI, "%s: no cached or matched targets. mark dfs share for reconnect.\n", __func__); - cifs_reconnect(tcon->ses->server, true); + cifs_mark_tcp_ses_conns_for_reconnect(tcon->ses->server, true); } /* Refresh dfs referral of tcon and mark it for reconnect if needed */ |