|
@@ -954,7 +954,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_in_cmds(
|
|
|
{
|
|
|
struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps);
|
|
|
struct se_port *sep;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock(&lun->lun_sep_lock);
|
|
@@ -963,7 +962,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_in_cmds(
|
|
|
spin_unlock(&lun->lun_sep_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = sep->sep_tpg;
|
|
|
|
|
|
ret = snprintf(page, PAGE_SIZE, "%llu\n", sep->sep_stats.cmd_pdus);
|
|
|
spin_unlock(&lun->lun_sep_lock);
|
|
@@ -976,7 +974,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_write_mbytes(
|
|
|
{
|
|
|
struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps);
|
|
|
struct se_port *sep;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock(&lun->lun_sep_lock);
|
|
@@ -985,7 +982,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_write_mbytes(
|
|
|
spin_unlock(&lun->lun_sep_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = sep->sep_tpg;
|
|
|
|
|
|
ret = snprintf(page, PAGE_SIZE, "%u\n",
|
|
|
(u32)(sep->sep_stats.rx_data_octets >> 20));
|
|
@@ -999,7 +995,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_read_mbytes(
|
|
|
{
|
|
|
struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps);
|
|
|
struct se_port *sep;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock(&lun->lun_sep_lock);
|
|
@@ -1008,7 +1003,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_read_mbytes(
|
|
|
spin_unlock(&lun->lun_sep_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = sep->sep_tpg;
|
|
|
|
|
|
ret = snprintf(page, PAGE_SIZE, "%u\n",
|
|
|
(u32)(sep->sep_stats.tx_data_octets >> 20));
|
|
@@ -1022,7 +1016,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_hs_in_cmds(
|
|
|
{
|
|
|
struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps);
|
|
|
struct se_port *sep;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock(&lun->lun_sep_lock);
|
|
@@ -1031,7 +1024,6 @@ static ssize_t target_stat_scsi_tgt_port_show_attr_hs_in_cmds(
|
|
|
spin_unlock(&lun->lun_sep_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = sep->sep_tpg;
|
|
|
|
|
|
/* FIXME: scsiTgtPortHsInCommands */
|
|
|
ret = snprintf(page, PAGE_SIZE, "%u\n", 0);
|
|
@@ -1275,7 +1267,6 @@ static ssize_t target_stat_scsi_auth_intr_show_attr_dev(
|
|
|
struct se_node_acl *nacl = lacl->se_lun_nacl;
|
|
|
struct se_dev_entry *deve;
|
|
|
struct se_lun *lun;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock_irq(&nacl->device_list_lock);
|
|
@@ -1284,7 +1275,6 @@ static ssize_t target_stat_scsi_auth_intr_show_attr_dev(
|
|
|
spin_unlock_irq(&nacl->device_list_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = nacl->se_tpg;
|
|
|
lun = deve->se_lun;
|
|
|
/* scsiDeviceIndex */
|
|
|
ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_se_dev->dev_index);
|
|
@@ -1643,7 +1633,6 @@ static ssize_t target_stat_scsi_att_intr_port_show_attr_dev(
|
|
|
struct se_node_acl *nacl = lacl->se_lun_nacl;
|
|
|
struct se_dev_entry *deve;
|
|
|
struct se_lun *lun;
|
|
|
- struct se_portal_group *tpg;
|
|
|
ssize_t ret;
|
|
|
|
|
|
spin_lock_irq(&nacl->device_list_lock);
|
|
@@ -1652,7 +1641,6 @@ static ssize_t target_stat_scsi_att_intr_port_show_attr_dev(
|
|
|
spin_unlock_irq(&nacl->device_list_lock);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
- tpg = nacl->se_tpg;
|
|
|
lun = deve->se_lun;
|
|
|
/* scsiDeviceIndex */
|
|
|
ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_se_dev->dev_index);
|