cifs: change tcon status when need_reconnect is set on it
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 6 Feb 2024 15:00:46 +0000 (15:00 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 9 Feb 2024 20:43:23 +0000 (14:43 -0600)
commitc6e02eefd6ace3da3369c764f15429f5647056af
treeacbd8039c464288f46b498353727f0900435fbed
parent55c7788c37242702868bfac7861cdf0c358d6c3d
cifs: change tcon status when need_reconnect is set on it

When a tcon is marked for need_reconnect, the intention
is to have it reconnected.

This change adjusts tcon->status in cifs_tree_connect
when need_reconnect is set. Also, this change has a minor
correction in resetting need_reconnect on success. It makes
sure that it is done with tc_lock held.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c
fs/smb/client/dfs.c
fs/smb/client/file.c