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)
commit621a41ae0834cec9cab312d600d2b9de41dc6eac
tree3b7869aeb5852508c07517ff60af8d82963d1f1b
parentbedc8f76b3539ac4f952114b316bcc2251e808ce
cifs: add missing spinlock around tcon refcount

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

Fixes: d7d7a66aacd6 ("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