Files
linux-stable-mirror/fs
Paulo Alcantara 2102ed90f7 smb: client: don't try following DFS links in cifs_tree_connect()
[ Upstream commit 36008fe6e3 ]

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>
2024-12-14 20:00:17 +01:00
..
2024-08-19 06:04:25 +02:00
2024-12-09 10:32:42 +01:00
2024-10-22 15:46:20 +02:00
2024-08-03 08:54:22 +02:00
2024-08-19 06:04:25 +02:00
2024-02-23 09:25:13 +01:00
2024-12-14 19:59:58 +01:00
2024-08-19 06:04:25 +02:00