Skip to contentSkip to conversation

: Add alua mutex initialization in core_alloc_port()

PATCH New Nicholas A. Bellinger 1 participant 1 message Aug 31, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 : Add alua mutex initialization in core_alloc_port()

Hello,

This patch updates core_alloc_port() to call mutex_init() for the mutex protecting the ALUA secondary access state/status metadata.

---
 drivers/target/target_core_device.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/target/target_core_device.c +1 -0
index a088960..a3572ed 100644
@@ -611,6 +611,7 @@ se_port_t *core_alloc_port(se_device_t *dev)
 	INIT_LIST_HEAD(&port->sep_list);
 	atomic_set(&port->sep_tg_pt_secondary_offline, 0);
 	spin_lock_init(&port->sep_alua_lock);
+	mutex_init(&port->sep_tg_pt_md_mutex);
 
 	spin_lock(&dev->se_port_lock);
 	if (dev->dev_port_count == 0x0000ffff) {
Signature · 1 line
1.5.4.1