cifs: split out dfs code from cifs_reconnect()
authorPaulo Alcantara <pc@cjr.nz>
Thu, 14 Oct 2021 20:49:54 +0000 (17:49 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:40:59 +0000 (17:40 +0100)
commitdbc0ea91be286c495a441abc2e56667ea8636ce9
tree98dd477a0ed73df596fc1e20a55b3e833b452e81
parentb3ce844d234f67e1b6a1928c7ca167587bccd9d4
cifs: split out dfs code from cifs_reconnect()

[ Upstream commit bbcce368044572d0802c3bbb8ef3fe98f581d803 ]

Make two separate functions that handle dfs and non-dfs reconnect
logics since cifs_reconnect() became way too complex to handle both.
While at it, add some documentation.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 1dcdf5f5b213 ("cifs: Fix connections leak when tlink setup failed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/connect.c