Commit 2dca673b authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger

target: Remove hba param from core_dev_add_lun

Only used in a debugprint, and function signature is cleaner now.
Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent ee1b1b9c
...@@ -1273,7 +1273,6 @@ int se_dev_set_block_size(struct se_device *dev, u32 block_size) ...@@ -1273,7 +1273,6 @@ int se_dev_set_block_size(struct se_device *dev, u32 block_size)
struct se_lun *core_dev_add_lun( struct se_lun *core_dev_add_lun(
struct se_portal_group *tpg, struct se_portal_group *tpg,
struct se_hba *hba,
struct se_device *dev, struct se_device *dev,
u32 lun) u32 lun)
{ {
...@@ -1298,7 +1297,7 @@ struct se_lun *core_dev_add_lun( ...@@ -1298,7 +1297,7 @@ struct se_lun *core_dev_add_lun(
pr_debug("%s_TPG[%u]_LUN[%u] - Activated %s Logical Unit from" pr_debug("%s_TPG[%u]_LUN[%u] - Activated %s Logical Unit from"
" CORE HBA: %u\n", tpg->se_tpg_tfo->get_fabric_name(), " CORE HBA: %u\n", tpg->se_tpg_tfo->get_fabric_name(),
tpg->se_tpg_tfo->tpg_get_tag(tpg), lun_p->unpacked_lun, tpg->se_tpg_tfo->tpg_get_tag(tpg), lun_p->unpacked_lun,
tpg->se_tpg_tfo->get_fabric_name(), hba->hba_id); tpg->se_tpg_tfo->get_fabric_name(), dev->se_hba->hba_id);
/* /*
* Update LUN maps for dynamically added initiators when * Update LUN maps for dynamically added initiators when
* generate_node_acl is enabled. * generate_node_acl is enabled.
......
...@@ -764,8 +764,7 @@ static int target_fabric_port_link( ...@@ -764,8 +764,7 @@ static int target_fabric_port_link(
goto out; goto out;
} }
lun_p = core_dev_add_lun(se_tpg, dev->se_hba, dev, lun_p = core_dev_add_lun(se_tpg, dev, lun->unpacked_lun);
lun->unpacked_lun);
if (IS_ERR(lun_p)) { if (IS_ERR(lun_p)) {
pr_err("core_dev_add_lun() failed\n"); pr_err("core_dev_add_lun() failed\n");
ret = PTR_ERR(lun_p); ret = PTR_ERR(lun_p);
......
...@@ -45,8 +45,7 @@ int se_dev_set_max_sectors(struct se_device *, u32); ...@@ -45,8 +45,7 @@ int se_dev_set_max_sectors(struct se_device *, u32);
int se_dev_set_fabric_max_sectors(struct se_device *, u32); int se_dev_set_fabric_max_sectors(struct se_device *, u32);
int se_dev_set_optimal_sectors(struct se_device *, u32); int se_dev_set_optimal_sectors(struct se_device *, u32);
int se_dev_set_block_size(struct se_device *, u32); int se_dev_set_block_size(struct se_device *, u32);
struct se_lun *core_dev_add_lun(struct se_portal_group *, struct se_hba *, struct se_lun *core_dev_add_lun(struct se_portal_group *, struct se_device *, u32);
struct se_device *, u32);
int core_dev_del_lun(struct se_portal_group *, u32); int core_dev_del_lun(struct se_portal_group *, u32);
struct se_lun *core_get_lun_from_tpg(struct se_portal_group *, u32); struct se_lun *core_get_lun_from_tpg(struct se_portal_group *, u32);
struct se_lun_acl *core_dev_init_initiator_node_lun_acl(struct se_portal_group *, struct se_lun_acl *core_dev_init_initiator_node_lun_acl(struct se_portal_group *,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment