diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index a6bf13269..1226a6759 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -95,8 +95,6 @@ struct list_head scst_dev_list; struct list_head scst_dev_type_list; struct list_head scst_virtual_dev_type_list; -spinlock_t scst_main_lock; - static struct kmem_cache *scst_mgmt_cachep; mempool_t *scst_mgmt_mempool; static struct kmem_cache *scst_mgmt_stub_cachep; @@ -2425,7 +2423,6 @@ static int __init init_scst(void) INIT_LIST_HEAD(&scst_dev_list); INIT_LIST_HEAD(&scst_dev_type_list); INIT_LIST_HEAD(&scst_virtual_dev_type_list); - spin_lock_init(&scst_main_lock); #ifdef CONFIG_SCST_PROC INIT_LIST_HEAD(&scst_acg_list); #endif diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index 358492276..325d92cd8 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -142,8 +142,6 @@ extern struct kmem_cache *scst_tgt_cachep; extern struct kmem_cache *scst_tgtd_cachep; extern struct kmem_cache *scst_acgd_cachep; -extern spinlock_t scst_main_lock; - extern unsigned long scst_flags; extern struct list_head scst_template_list; extern struct list_head scst_dev_list;