aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-05-21 00:21:08 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-06-01 03:27:56 -0400
commit9e37d042cfcb003b885bb4c531cd6f07f62647d1 (patch)
tree8f198eb93f269c0ebe7a69b018293e2814316aee /include/target
parent4cc987eaff9144182cde88d6d132420c28d3f81b (diff)
target: Drop se_lun->lun_active for existing percpu lun_ref
With se_port_t and t10_alua_tg_pt_gp_member being absored into se_lun, there is no need for an extra atomic_t based reference count for PR ALL_TG_PT=1 and ALUA access state transition. Go ahead and use the existing percpu se_lun->lun_ref instead, and convert the two special cases to percpu_ref_tryget_live() to avoid se_lun if transport_clear_lun_ref() has already been invoked to shutdown the se_lun. Cc: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index b82a989a4d3b..eefc2b0cfaa3 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -721,7 +721,6 @@ struct se_lun {
721 struct t10_alua_tg_pt_gp *lun_tg_pt_gp; 721 struct t10_alua_tg_pt_gp *lun_tg_pt_gp;
722 spinlock_t lun_tg_pt_gp_lock; 722 spinlock_t lun_tg_pt_gp_lock;
723 723
724 atomic_t lun_active;
725 struct se_portal_group *lun_tpg; 724 struct se_portal_group *lun_tpg;
726 struct scsi_port_stats lun_stats; 725 struct scsi_port_stats lun_stats;
727 struct config_group lun_group; 726 struct config_group lun_group;