diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-03-15 02:32:53 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-15 05:05:53 +0300 |
commit | b56bce502f55505a97e381d546ee881928183126 (patch) | |
tree | f26b519515e2423fa65b515c23eeefc46e35f124 /fs/cifs/cifsglob.h | |
parent | 05ce0448c3f36febd8db0ee0e9e16557f3ab5ee8 (diff) | |
download | linux-b56bce502f55505a97e381d546ee881928183126.tar.xz |
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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index a99883f16d94..1a8190f71c24 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1749,7 +1749,6 @@ struct cifs_mount_ctx { struct TCP_Server_Info *server; struct cifs_ses *ses; struct cifs_tcon *tcon; - struct cifs_ses *root_ses; uuid_t mount_id; char *origin_fullpath, *leaf_fullpath; }; |