smb: client: optimize referral walk on failed link targets
authorPaulo Alcantara <pc@manguebit.com>
Fri, 10 Jan 2025 18:58:08 +0000 (15:58 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Jan 2025 01:34:00 +0000 (19:34 -0600)
commit5433c629e8d4eee77233a2bc88075886dc6e37ef
tree77903039a72dbaa46def60bb87923bb29ab0b507
parent4b1b4c8be9dee9aa1a751cfa3954b2fcfdfe9c3d
smb: client: optimize referral walk on failed link targets

If a link referral request sent to root server was successful but
client failed to connect to all link targets, there is no need to
retry same link referral on a different root server.  Set an end
marker for the DFS root referral so the client will not attempt to
re-send link referrals to different root servers on failures.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs.c
fs/smb/client/dfs.h