]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:56 +0000 (13:34 +0100)
commitcd743cfead99fbfa176c9b317706da22fb846542
tree409cb4903ef7db1925f6d27cb00c4158634983b0
parent8946924ff324853df6b7c525a7467d964dfd11c3
cifs: change tcon status when need_reconnect is set on it

[ Upstream commit c6e02eefd6ace3da3369c764f15429f5647056af ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/connect.c
fs/smb/client/dfs.c
fs/smb/client/file.c