aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/target/target_core_transport.c8
-rw-r--r--include/target/target_core_base.h1
2 files changed, 1 insertions, 8 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index e13fafa6f526..ae112ac91c47 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -738,13 +738,7 @@ void transport_complete_task(struct se_task *task, int success)
738 } 738 }
739 739
740 if (cmd->t_tasks_failed) { 740 if (cmd->t_tasks_failed) {
741 if (!task->task_error_status) { 741 cmd->scsi_sense_reason = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
742 task->task_error_status =
743 TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
744 cmd->scsi_sense_reason =
745 TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
746 }
747
748 INIT_WORK(&cmd->work, target_complete_failure_work); 742 INIT_WORK(&cmd->work, target_complete_failure_work);
749 } else { 743 } else {
750 atomic_set(&cmd->t_transport_complete, 1); 744 atomic_set(&cmd->t_transport_complete, 1);
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 7f3acdde97de..e2473e6770b3 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -490,7 +490,6 @@ struct se_task {
490 u32 task_sg_nents; 490 u32 task_sg_nents;
491 u16 task_flags; 491 u16 task_flags;
492 u8 task_scsi_status; 492 u8 task_scsi_status;
493 int task_error_status;
494 enum dma_data_direction task_data_direction; 493 enum dma_data_direction task_data_direction;
495 atomic_t task_state_active; 494 atomic_t task_state_active;
496 struct list_head t_list; 495 struct list_head t_list;