cifs: set DFS root session in cifs_get_smb_ses()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 14 Mar 2023 23:32:53 +0000 (20:32 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 15 Mar 2023 02:05:53 +0000 (21:05 -0500)
commitb56bce502f55505a97e381d546ee881928183126
treef26b519515e2423fa65b515c23eeefc46e35f124
parent05ce0448c3f36febd8db0ee0e9e16557f3ab5ee8
cifs: set DFS root session in cifs_get_smb_ses()

Set the DFS root session pointer earlier when creating a new SMB
session to prevent racing with smb2_reconnect(), cifs_reconnect_tcon()
and DFS cache refresher.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org # 6.2
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/dfs.c
fs/cifs/dfs.h
fs/cifs/fs_context.h