[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20201223141120.32346-1-zhengyongjun3@huawei.com>
Date: Wed, 23 Dec 2020 22:11:20 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <linux-scsi@...r.kernel.org>, <target-devel@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] scsi: target: iscsi: use DEFINE_MUTEX (and mutex_init() had been too late)
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/target/iscsi/iscsi_target.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 518fac4864cf..b33726229f94 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -50,7 +50,7 @@ static DEFINE_MUTEX(np_lock);
static struct idr tiqn_idr;
DEFINE_IDA(sess_ida);
-struct mutex auth_id_lock;
+DEFINE_MUTEX(auth_id_lock);
struct iscsit_global *iscsit_global;
@@ -690,7 +690,6 @@ static int __init iscsi_target_init_module(void)
return -1;
spin_lock_init(&iscsit_global->ts_bitmap_lock);
- mutex_init(&auth_id_lock);
idr_init(&tiqn_idr);
ret = target_register_template(&iscsi_ops);
--
2.22.0
Powered by blists - more mailing lists