Searched hist:"2102 ed90f78900633d51b6cdbfb25e32f6d80aec" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/smb/client/ |
H A D | dfs.c | diff 2102ed90f78900633d51b6cdbfb25e32f6d80aec Tue Nov 26 12:55:53 CST 2024 Paulo Alcantara <pc@manguebit.com> smb: client: don't try following DFS links in cifs_tree_connect()
[ Upstream commit 36008fe6e3dc588e5e9ceae6e82c7f69399eb5d8 ]
We can't properly support chasing DFS links in cifs_tree_connect() because
(1) We don't support creating new sessions while we're reconnecting, which would be required for DFS interlinks.
(2) ->is_path_accessible() can't be called from cifs_tree_connect() as it would deadlock with smb2_reconnect(). This is required for checking if new DFS target is a nested DFS link.
By unconditionally trying to get an DFS referral from new DFS target isn't correct because if the new DFS target (interlink) is an DFS standalone namespace, then we would end up getting -ELOOP and then potentially leaving tcon disconnected.
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
|