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)
commitcd70a3e8988a999c42d307d2616a5e7b6a33c7c8
tree780c9c13af372e0e7baf42de0b1589d13c842198
parent41f10081a92a0ed280008218a8ec18ad8ba0fceb
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