smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 01:44:09 +0000 (22:44 -0300)
committerSteve French <stfrench@microsoft.com>
Tue, 2 Apr 2024 15:12:22 +0000 (10:12 -0500)
commit93cee45ccfebc62a3bb4cd622b89e00c8c7d8493
tree039a43ddb20695fb0d606e0cc7761fee37d2d435
parent4a5ba0e0bfe552ac7451f57e304f6343c3d87f89
smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex

Serialise cifs_construct_tcon() with cifs_mount_mutex to handle
parallel mounts that may end up reusing the session and tcon created
by it.

Cc: stable@vger.kernel.org # 6.4+
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h