OSDN Git Service

cifs: avoid races in parallel reconnects in smb1
authorPaulo Alcantara <pc@manguebit.com>
Wed, 29 Mar 2023 20:14:21 +0000 (17:14 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Mar 2023 22:55:55 +0000 (17:55 -0500)
commit6cc041e90c178955219dcee4030bd5423f800f10
tree9ea36548928928da57f325235771f1211230c92f
parent179a88a8558bbf42991d361595281f3e45d7edfc
cifs: avoid races in parallel reconnects in smb1

Prevent multiple threads of doing negotiate, session setup and tree
connect by holding @ses->session_mutex in cifs_reconnect_tcon() while
reconnecting session and tcon.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c