cifs: cifs_ses_mark_for_reconnect should also update reconnect bits
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 17 Jan 2022 07:15:02 +0000 (07:15 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jan 2022 17:10:58 +0000 (11:10 -0600)
commitba978e83255a759a4a07257a46ca6396a8b81787
tree2fdef096adf237a622e37b52e19a42f19be92e0b
parent47de760655f329ce4b3d3e6276557220956d8c38
cifs: cifs_ses_mark_for_reconnect should also update reconnect bits

Recent restructuring of cifs_reconnect introduced a helper func
named cifs_ses_mark_for_reconnect, which updates the state of tcp
session for all the channels of a session for reconnect.

However, this does not update the session state and chans_need_reconnect
bitmask. This change fixes that.

Also, cifs_mark_tcp_sess_for_reconnect should mark set the bitmask
for all channels when the whole session is marked for reconnect.
Fixed that here too.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_swn.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/netmisc.c
fs/cifs/sess.c