]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add missing spinlock around tcon refcount
authorPaulo Alcantara <pc@cjr.nz>
Wed, 14 Sep 2022 04:34:51 +0000 (21:34 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 14 Sep 2022 08:59:51 +0000 (03:59 -0500)
commit33ab8a7c4f39d242d784dbf690b26438e5732d81
tree3b7869aeb5852508c07517ff60af8d82963d1f1b
parent3d52c5dc603423771d66bde845f951c877cc7c96
cifs: add missing spinlock around tcon refcount

Add missing spinlock to protect updates on tcon refcount in
cifs_put_tcon().

Fixes: 252294d3f636 ("cifs: avoid use of global locks for high contention data")
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c