diff options
-rw-r--r-- | drivers/target/iscsi/iscsi_target_core.h | 2 | ||||
-rw-r--r-- | drivers/target/target_core_alua.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_transport.c | 8 | ||||
-rw-r--r-- | include/target/target_core_base.h | 18 |
4 files changed, 0 insertions, 30 deletions
diff --git a/drivers/target/iscsi/iscsi_target_core.h b/drivers/target/iscsi/iscsi_target_core.h index 0e96a6b13174..f1a02dad05a0 100644 --- a/drivers/target/iscsi/iscsi_target_core.h +++ b/drivers/target/iscsi/iscsi_target_core.h | |||
@@ -534,7 +534,6 @@ struct iscsi_conn { | |||
534 | atomic_t connection_exit; | 534 | atomic_t connection_exit; |
535 | atomic_t connection_recovery; | 535 | atomic_t connection_recovery; |
536 | atomic_t connection_reinstatement; | 536 | atomic_t connection_reinstatement; |
537 | atomic_t connection_wait; | ||
538 | atomic_t connection_wait_rcfr; | 537 | atomic_t connection_wait_rcfr; |
539 | atomic_t sleep_on_conn_wait_comp; | 538 | atomic_t sleep_on_conn_wait_comp; |
540 | atomic_t transport_failed; | 539 | atomic_t transport_failed; |
@@ -642,7 +641,6 @@ struct iscsi_session { | |||
642 | atomic_t session_reinstatement; | 641 | atomic_t session_reinstatement; |
643 | atomic_t session_stop_active; | 642 | atomic_t session_stop_active; |
644 | atomic_t sleep_on_sess_wait_comp; | 643 | atomic_t sleep_on_sess_wait_comp; |
645 | atomic_t transport_wait_cmds; | ||
646 | /* connection list */ | 644 | /* connection list */ |
647 | struct list_head sess_conn_list; | 645 | struct list_head sess_conn_list; |
648 | struct list_head cr_active_list; | 646 | struct list_head cr_active_list; |
diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index cd61331c1482..1dcbef499d6a 100644 --- a/drivers/target/target_core_alua.c +++ b/drivers/target/target_core_alua.c | |||
@@ -1191,7 +1191,6 @@ void core_alua_free_lu_gp(struct t10_alua_lu_gp *lu_gp) | |||
1191 | * struct t10_alua_lu_gp. | 1191 | * struct t10_alua_lu_gp. |
1192 | */ | 1192 | */ |
1193 | spin_lock(&lu_gps_lock); | 1193 | spin_lock(&lu_gps_lock); |
1194 | atomic_set(&lu_gp->lu_gp_shutdown, 1); | ||
1195 | list_del(&lu_gp->lu_gp_node); | 1194 | list_del(&lu_gp->lu_gp_node); |
1196 | alua_lu_gps_count--; | 1195 | alua_lu_gps_count--; |
1197 | spin_unlock(&lu_gps_lock); | 1196 | spin_unlock(&lu_gps_lock); |
@@ -1445,7 +1444,6 @@ struct t10_alua_tg_pt_gp_member *core_alua_allocate_tg_pt_gp_mem( | |||
1445 | 1444 | ||
1446 | tg_pt_gp_mem->tg_pt = port; | 1445 | tg_pt_gp_mem->tg_pt = port; |
1447 | port->sep_alua_tg_pt_gp_mem = tg_pt_gp_mem; | 1446 | port->sep_alua_tg_pt_gp_mem = tg_pt_gp_mem; |
1448 | atomic_set(&port->sep_tg_pt_gp_active, 1); | ||
1449 | 1447 | ||
1450 | return tg_pt_gp_mem; | 1448 | return tg_pt_gp_mem; |
1451 | } | 1449 | } |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 9faaaae78b0a..0257658e2e3e 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1326,7 +1326,6 @@ struct se_device *transport_add_device_to_core_hba( | |||
1326 | dev->se_hba = hba; | 1326 | dev->se_hba = hba; |
1327 | dev->se_sub_dev = se_dev; | 1327 | dev->se_sub_dev = se_dev; |
1328 | dev->transport = transport; | 1328 | dev->transport = transport; |
1329 | atomic_set(&dev->active_cmds, 0); | ||
1330 | INIT_LIST_HEAD(&dev->dev_list); | 1329 | INIT_LIST_HEAD(&dev->dev_list); |
1331 | INIT_LIST_HEAD(&dev->dev_sep_list); | 1330 | INIT_LIST_HEAD(&dev->dev_sep_list); |
1332 | INIT_LIST_HEAD(&dev->dev_tmr_list); | 1331 | INIT_LIST_HEAD(&dev->dev_tmr_list); |
@@ -1336,11 +1335,8 @@ struct se_device *transport_add_device_to_core_hba( | |||
1336 | INIT_LIST_HEAD(&dev->qf_cmd_list); | 1335 | INIT_LIST_HEAD(&dev->qf_cmd_list); |
1337 | spin_lock_init(&dev->execute_task_lock); | 1336 | spin_lock_init(&dev->execute_task_lock); |
1338 | spin_lock_init(&dev->delayed_cmd_lock); | 1337 | spin_lock_init(&dev->delayed_cmd_lock); |
1339 | spin_lock_init(&dev->state_task_lock); | ||
1340 | spin_lock_init(&dev->dev_alua_lock); | ||
1341 | spin_lock_init(&dev->dev_reservation_lock); | 1338 | spin_lock_init(&dev->dev_reservation_lock); |
1342 | spin_lock_init(&dev->dev_status_lock); | 1339 | spin_lock_init(&dev->dev_status_lock); |
1343 | spin_lock_init(&dev->dev_status_thr_lock); | ||
1344 | spin_lock_init(&dev->se_port_lock); | 1340 | spin_lock_init(&dev->se_port_lock); |
1345 | spin_lock_init(&dev->se_tmr_lock); | 1341 | spin_lock_init(&dev->se_tmr_lock); |
1346 | spin_lock_init(&dev->qf_cmd_lock); | 1342 | spin_lock_init(&dev->qf_cmd_lock); |
@@ -1952,8 +1948,6 @@ static inline int transport_execute_task_attr(struct se_cmd *cmd) | |||
1952 | * to allow the passed struct se_cmd list of tasks to the front of the list. | 1948 | * to allow the passed struct se_cmd list of tasks to the front of the list. |
1953 | */ | 1949 | */ |
1954 | if (cmd->sam_task_attr == MSG_HEAD_TAG) { | 1950 | if (cmd->sam_task_attr == MSG_HEAD_TAG) { |
1955 | atomic_inc(&cmd->se_dev->dev_hoq_count); | ||
1956 | smp_mb__after_atomic_inc(); | ||
1957 | pr_debug("Added HEAD_OF_QUEUE for CDB:" | 1951 | pr_debug("Added HEAD_OF_QUEUE for CDB:" |
1958 | " 0x%02x, se_ordered_id: %u\n", | 1952 | " 0x%02x, se_ordered_id: %u\n", |
1959 | cmd->t_task_cdb[0], | 1953 | cmd->t_task_cdb[0], |
@@ -3095,8 +3089,6 @@ static void transport_complete_task_attr(struct se_cmd *cmd) | |||
3095 | " SIMPLE: %u\n", dev->dev_cur_ordered_id, | 3089 | " SIMPLE: %u\n", dev->dev_cur_ordered_id, |
3096 | cmd->se_ordered_id); | 3090 | cmd->se_ordered_id); |
3097 | } else if (cmd->sam_task_attr == MSG_HEAD_TAG) { | 3091 | } else if (cmd->sam_task_attr == MSG_HEAD_TAG) { |
3098 | atomic_dec(&dev->dev_hoq_count); | ||
3099 | smp_mb__after_atomic_dec(); | ||
3100 | dev->dev_cur_ordered_id++; | 3092 | dev->dev_cur_ordered_id++; |
3101 | pr_debug("Incremented dev_cur_ordered_id: %u for" | 3093 | pr_debug("Incremented dev_cur_ordered_id: %u for" |
3102 | " HEAD_OF_QUEUE: %u\n", dev->dev_cur_ordered_id, | 3094 | " HEAD_OF_QUEUE: %u\n", dev->dev_cur_ordered_id, |
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 3a21e2234d2b..098a15611aba 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -213,7 +213,6 @@ struct t10_alua_lu_gp { | |||
213 | u16 lu_gp_id; | 213 | u16 lu_gp_id; |
214 | int lu_gp_valid_id; | 214 | int lu_gp_valid_id; |
215 | u32 lu_gp_members; | 215 | u32 lu_gp_members; |
216 | atomic_t lu_gp_shutdown; | ||
217 | atomic_t lu_gp_ref_cnt; | 216 | atomic_t lu_gp_ref_cnt; |
218 | spinlock_t lu_gp_lock; | 217 | spinlock_t lu_gp_lock; |
219 | struct config_group lu_gp_group; | 218 | struct config_group lu_gp_group; |
@@ -679,9 +678,6 @@ struct se_subsystem_dev { | |||
679 | } ____cacheline_aligned; | 678 | } ____cacheline_aligned; |
680 | 679 | ||
681 | struct se_device { | 680 | struct se_device { |
682 | /* Set to 1 if thread is NOT sleeping on thread_sem */ | ||
683 | u8 thread_active; | ||
684 | u8 dev_status_timer_flags; | ||
685 | /* RELATIVE TARGET PORT IDENTIFER Counter */ | 681 | /* RELATIVE TARGET PORT IDENTIFER Counter */ |
686 | u16 dev_rpti_counter; | 682 | u16 dev_rpti_counter; |
687 | /* Used for SAM Task Attribute ordering */ | 683 | /* Used for SAM Task Attribute ordering */ |
@@ -706,14 +702,10 @@ struct se_device { | |||
706 | u64 write_bytes; | 702 | u64 write_bytes; |
707 | spinlock_t stats_lock; | 703 | spinlock_t stats_lock; |
708 | /* Active commands on this virtual SE device */ | 704 | /* Active commands on this virtual SE device */ |
709 | atomic_t active_cmds; | ||
710 | atomic_t simple_cmds; | 705 | atomic_t simple_cmds; |
711 | atomic_t depth_left; | 706 | atomic_t depth_left; |
712 | atomic_t dev_ordered_id; | 707 | atomic_t dev_ordered_id; |
713 | atomic_t dev_tur_active; | ||
714 | atomic_t execute_tasks; | 708 | atomic_t execute_tasks; |
715 | atomic_t dev_status_thr_count; | ||
716 | atomic_t dev_hoq_count; | ||
717 | atomic_t dev_ordered_sync; | 709 | atomic_t dev_ordered_sync; |
718 | atomic_t dev_qf_count; | 710 | atomic_t dev_qf_count; |
719 | struct se_obj dev_obj; | 711 | struct se_obj dev_obj; |
@@ -722,12 +714,8 @@ struct se_device { | |||
722 | struct se_queue_obj dev_queue_obj; | 714 | struct se_queue_obj dev_queue_obj; |
723 | spinlock_t delayed_cmd_lock; | 715 | spinlock_t delayed_cmd_lock; |
724 | spinlock_t execute_task_lock; | 716 | spinlock_t execute_task_lock; |
725 | spinlock_t state_task_lock; | ||
726 | spinlock_t dev_alua_lock; | ||
727 | spinlock_t dev_reservation_lock; | 717 | spinlock_t dev_reservation_lock; |
728 | spinlock_t dev_state_lock; | ||
729 | spinlock_t dev_status_lock; | 718 | spinlock_t dev_status_lock; |
730 | spinlock_t dev_status_thr_lock; | ||
731 | spinlock_t se_port_lock; | 719 | spinlock_t se_port_lock; |
732 | spinlock_t se_tmr_lock; | 720 | spinlock_t se_tmr_lock; |
733 | spinlock_t qf_cmd_lock; | 721 | spinlock_t qf_cmd_lock; |
@@ -739,11 +727,8 @@ struct se_device { | |||
739 | struct t10_pr_registration *dev_pr_res_holder; | 727 | struct t10_pr_registration *dev_pr_res_holder; |
740 | struct list_head dev_sep_list; | 728 | struct list_head dev_sep_list; |
741 | struct list_head dev_tmr_list; | 729 | struct list_head dev_tmr_list; |
742 | struct timer_list dev_status_timer; | ||
743 | /* Pointer to descriptor for processing thread */ | 730 | /* Pointer to descriptor for processing thread */ |
744 | struct task_struct *process_thread; | 731 | struct task_struct *process_thread; |
745 | pid_t process_thread_pid; | ||
746 | struct task_struct *dev_mgmt_thread; | ||
747 | struct work_struct qf_work_queue; | 732 | struct work_struct qf_work_queue; |
748 | struct list_head delayed_cmd_list; | 733 | struct list_head delayed_cmd_list; |
749 | struct list_head execute_task_list; | 734 | struct list_head execute_task_list; |
@@ -756,8 +741,6 @@ struct se_device { | |||
756 | struct se_subsystem_api *transport; | 741 | struct se_subsystem_api *transport; |
757 | /* Linked list for struct se_hba struct se_device list */ | 742 | /* Linked list for struct se_hba struct se_device list */ |
758 | struct list_head dev_list; | 743 | struct list_head dev_list; |
759 | /* Linked list for struct se_global->g_se_dev_list */ | ||
760 | struct list_head g_se_dev_list; | ||
761 | } ____cacheline_aligned; | 744 | } ____cacheline_aligned; |
762 | 745 | ||
763 | struct se_hba { | 746 | struct se_hba { |
@@ -819,7 +802,6 @@ struct se_port { | |||
819 | u32 sep_index; | 802 | u32 sep_index; |
820 | struct scsi_port_stats sep_stats; | 803 | struct scsi_port_stats sep_stats; |
821 | /* Used for ALUA Target Port Groups membership */ | 804 | /* Used for ALUA Target Port Groups membership */ |
822 | atomic_t sep_tg_pt_gp_active; | ||
823 | atomic_t sep_tg_pt_secondary_offline; | 805 | atomic_t sep_tg_pt_secondary_offline; |
824 | /* Used for PR ALL_TG_PT=1 */ | 806 | /* Used for PR ALL_TG_PT=1 */ |
825 | atomic_t sep_tg_pt_ref_cnt; | 807 | atomic_t sep_tg_pt_ref_cnt; |