cifs: optimize reconnect of nested links
authorPaulo Alcantara <pc@cjr.nz>
Sat, 17 Dec 2022 03:46:11 +0000 (00:46 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Dec 2022 14:03:12 +0000 (08:03 -0600)
commit6fbdd5ab240443e3f8574eb9d407d03daace1ddc
treefe671178691e7d13012dc888deb3215640417cc9
parent466611e4af8252dce253cfaebdc7b0019acdbe7e
cifs: optimize reconnect of nested links

There is no point going all the way back to the original dfs full path
if reconnect of tcon did not finish due a nested link found as newly
resolved target for the current referral.  So, just mark current
server for reconnect as we already set @current_fullpath to the new
dfs referral in update_server_fullpath().

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs.c