cifs: call helper functions for marking channels for reconnect
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 8 Feb 2022 19:15:17 +0000 (19:15 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Feb 2022 04:13:48 +0000 (22:13 -0600)
commit52492ff5c583036306bc422a83e246c971af387a
treeda6fa1518b6254dcc8bc1223ae04f50b740acaec
parenta81da65fbae6436e1e2f415532b8aacc3274d840
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>
fs/cifs/cifs_swn.c
fs/cifs/dfs_cache.c
fs/cifs/smb1ops.c
fs/cifs/transport.c