]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: use correct lock type in cifs_reconnect()
authorPaulo Alcantara <pc@cjr.nz>
Thu, 21 Apr 2022 00:05:46 +0000 (21:05 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 21 Apr 2022 03:54:39 +0000 (22:54 -0500)
commit461e11a4c7d22fd81608468caa7bb3642e10a6ae
tree780c9c13af372e0e7baf42de0b1589d13c842198
parent92fea51cc16e583cad9aea7769a5fb5d6aaf3ff4
cifs: use correct lock type in cifs_reconnect()

TCP_Server_Info::origin_fullpath and TCP_Server_Info::leaf_fullpath
are protected by refpath_lock mutex and not cifs_tcp_ses_lock
spinlock.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: stable@vger.kernel.org
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c