diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_alua.c | 4 | ||||
-rw-r--r-- | drivers/target/target_core_transport.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index 2c5fcfed5934..e7dddafe73f6 100644 --- a/drivers/target/target_core_alua.c +++ b/drivers/target/target_core_alua.c | |||
@@ -1036,7 +1036,7 @@ core_alua_allocate_lu_gp(const char *name, int def_group) | |||
1036 | lu_gp = kmem_cache_zalloc(t10_alua_lu_gp_cache, GFP_KERNEL); | 1036 | lu_gp = kmem_cache_zalloc(t10_alua_lu_gp_cache, GFP_KERNEL); |
1037 | if (!(lu_gp)) { | 1037 | if (!(lu_gp)) { |
1038 | printk(KERN_ERR "Unable to allocate struct t10_alua_lu_gp\n"); | 1038 | printk(KERN_ERR "Unable to allocate struct t10_alua_lu_gp\n"); |
1039 | return ERR_PTR(-ENOMEM);; | 1039 | return ERR_PTR(-ENOMEM); |
1040 | } | 1040 | } |
1041 | INIT_LIST_HEAD(&lu_gp->lu_gp_list); | 1041 | INIT_LIST_HEAD(&lu_gp->lu_gp_list); |
1042 | INIT_LIST_HEAD(&lu_gp->lu_gp_mem_list); | 1042 | INIT_LIST_HEAD(&lu_gp->lu_gp_mem_list); |
@@ -1044,7 +1044,7 @@ core_alua_allocate_lu_gp(const char *name, int def_group) | |||
1044 | atomic_set(&lu_gp->lu_gp_ref_cnt, 0); | 1044 | atomic_set(&lu_gp->lu_gp_ref_cnt, 0); |
1045 | 1045 | ||
1046 | if (def_group) { | 1046 | if (def_group) { |
1047 | lu_gp->lu_gp_id = se_global->alua_lu_gps_counter++;; | 1047 | lu_gp->lu_gp_id = se_global->alua_lu_gps_counter++; |
1048 | lu_gp->lu_gp_valid_id = 1; | 1048 | lu_gp->lu_gp_valid_id = 1; |
1049 | se_global->alua_lu_gps_count++; | 1049 | se_global->alua_lu_gps_count++; |
1050 | } | 1050 | } |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index ff9ace01e27a..39ac190080e2 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -2131,7 +2131,7 @@ static void transport_failure_reset_queue_depth(struct se_device *dev) | |||
2131 | { | 2131 | { |
2132 | unsigned long flags; | 2132 | unsigned long flags; |
2133 | 2133 | ||
2134 | spin_lock_irqsave(&SE_HBA(dev)->hba_queue_lock, flags);; | 2134 | spin_lock_irqsave(&SE_HBA(dev)->hba_queue_lock, flags); |
2135 | atomic_inc(&dev->depth_left); | 2135 | atomic_inc(&dev->depth_left); |
2136 | atomic_inc(&SE_HBA(dev)->left_queue_depth); | 2136 | atomic_inc(&SE_HBA(dev)->left_queue_depth); |
2137 | spin_unlock_irqrestore(&SE_HBA(dev)->hba_queue_lock, flags); | 2137 | spin_unlock_irqrestore(&SE_HBA(dev)->hba_queue_lock, flags); |