linux/include/target
Nicholas Bellinger 9e37d042cf 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>
2015-06-01 00:27:56 -07:00
..
iscsi target: move node ACL allocation to core code 2015-05-30 22:42:23 -07:00
configfs_macros.h doc: fix broken references 2011-09-27 18:08:04 +02:00
target_core_backend.h target: simplify backend attribute implementation 2015-06-01 00:25:38 -07:00
target_core_base.h target: Drop se_lun->lun_active for existing percpu lun_ref 2015-06-01 00:27:56 -07:00
target_core_configfs.h target: remove struct target_fabric_configfs_template 2015-05-30 22:42:38 -07:00
target_core_fabric_configfs.h target: Add target_show_dynamic_sessions attribute helper 2015-03-06 21:24:53 -08:00
target_core_fabric.h target: Convert se_portal_group->tpg_lun_list[] to RCU hlist 2015-06-01 00:24:33 -07:00