summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-07-29 15:49:35 +0800
committerSteve French <stfrench@microsoft.com>2022-08-01 01:34:45 -0500
commitaea02fc40a7fa6ac2c16e3c3a6f1d0fd7e6faaba (patch)
tree48a71c41439fa4ee707d081b979b6352380d0460 /fs/cifs
parentd7d7a66aacd6fd8ca57baf08a7bac5421282f6f8 (diff)
cifs: fix wrong unlock before return from cifs_tree_connect()
It should unlock 'tcon->tc_lock' before return from cifs_tree_connect(). Fixes: fe67bd563ec2 ("cifs: avoid use of global locks for high contention data") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 931d4b6fafc8..1362210f3ece 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -4583,7 +4583,7 @@ int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon, const stru
if (tcon->ses->ses_status != SES_GOOD ||
(tcon->status != TID_NEW &&
tcon->status != TID_NEED_TCON)) {
- spin_unlock(&tcon->ses->ses_lock);
+ spin_unlock(&tcon->tc_lock);
return 0;
}
tcon->status = TID_IN_TCON;