mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
target: Drop unused se_lun->lun_acl_list
Reviewed-by: Hannes Reinecke <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Sagi Grimberg <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
22793de590
commit
84786546b6
3 changed files with 0 additions and 22 deletions
|
|
@ -1243,7 +1243,6 @@ struct se_lun_acl *core_dev_init_initiator_node_lun_acl(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
INIT_LIST_HEAD(&lacl->lacl_list);
|
||||
lacl->mapped_lun = mapped_lun;
|
||||
lacl->se_lun_nacl = nacl;
|
||||
snprintf(lacl->initiatorname, TRANSPORT_IQN_LEN, "%s",
|
||||
|
|
@ -1273,11 +1272,6 @@ int core_dev_add_initiator_node_lun_acl(
|
|||
lun_access, nacl, tpg) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
spin_lock(&lun->lun_acl_lock);
|
||||
list_add_tail(&lacl->lacl_list, &lun->lun_acl_list);
|
||||
atomic_inc_mb(&lun->lun_acl_count);
|
||||
spin_unlock(&lun->lun_acl_lock);
|
||||
|
||||
pr_debug("%s_TPG[%hu]_LUN[%u->%u] - Added %s ACL for "
|
||||
" InitiatorNode: %s\n", tpg->se_tpg_tfo->get_fabric_name(),
|
||||
tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lacl->mapped_lun,
|
||||
|
|
@ -1304,19 +1298,12 @@ int core_dev_del_initiator_node_lun_acl(
|
|||
if (!nacl)
|
||||
return -EINVAL;
|
||||
|
||||
spin_lock(&lun->lun_acl_lock);
|
||||
list_del(&lacl->lacl_list);
|
||||
atomic_dec_mb(&lun->lun_acl_count);
|
||||
spin_unlock(&lun->lun_acl_lock);
|
||||
|
||||
mutex_lock(&nacl->lun_entry_mutex);
|
||||
deve = target_nacl_find_deve(nacl, lacl->mapped_lun);
|
||||
if (deve)
|
||||
core_disable_device_list_for_node(lun, deve, nacl, tpg);
|
||||
mutex_unlock(&nacl->lun_entry_mutex);
|
||||
|
||||
lacl->se_lun = NULL;
|
||||
|
||||
pr_debug("%s_TPG[%hu]_LUN[%u] - Removed ACL for"
|
||||
" InitiatorNode: %s Mapped LUN: %u\n",
|
||||
tpg->se_tpg_tfo->get_fabric_name(),
|
||||
|
|
@ -1446,8 +1433,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
|
|||
xcopy_lun = &dev->xcopy_lun;
|
||||
xcopy_lun->lun_se_dev = dev;
|
||||
init_completion(&xcopy_lun->lun_shutdown_comp);
|
||||
INIT_LIST_HEAD(&xcopy_lun->lun_acl_list);
|
||||
spin_lock_init(&xcopy_lun->lun_acl_lock);
|
||||
spin_lock_init(&xcopy_lun->lun_sep_lock);
|
||||
init_completion(&xcopy_lun->lun_ref_comp);
|
||||
|
||||
|
|
|
|||
|
|
@ -495,8 +495,6 @@ static int core_tpg_setup_virtual_lun0(struct se_portal_group *se_tpg)
|
|||
lun->lun_status = TRANSPORT_LUN_STATUS_FREE;
|
||||
atomic_set(&lun->lun_acl_count, 0);
|
||||
init_completion(&lun->lun_shutdown_comp);
|
||||
INIT_LIST_HEAD(&lun->lun_acl_list);
|
||||
spin_lock_init(&lun->lun_acl_lock);
|
||||
spin_lock_init(&lun->lun_sep_lock);
|
||||
init_completion(&lun->lun_ref_comp);
|
||||
|
||||
|
|
@ -610,8 +608,6 @@ struct se_lun *core_tpg_alloc_lun(
|
|||
lun->lun_status = TRANSPORT_LUN_STATUS_FREE;
|
||||
atomic_set(&lun->lun_acl_count, 0);
|
||||
init_completion(&lun->lun_shutdown_comp);
|
||||
INIT_LIST_HEAD(&lun->lun_acl_list);
|
||||
spin_lock_init(&lun->lun_acl_lock);
|
||||
spin_lock_init(&lun->lun_sep_lock);
|
||||
init_completion(&lun->lun_ref_comp);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue