mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
target: remove the se_task task_error_status field
We only reach transport_complete_task once per task, so the test and set on task_error_status is never going to have an effect. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
ef804a849f
commit
41e16e9816
2 changed files with 1 additions and 8 deletions
|
|
@ -738,13 +738,7 @@ void transport_complete_task(struct se_task *task, int success)
|
|||
}
|
||||
|
||||
if (cmd->t_tasks_failed) {
|
||||
if (!task->task_error_status) {
|
||||
task->task_error_status =
|
||||
TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
|
||||
cmd->scsi_sense_reason =
|
||||
TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
|
||||
}
|
||||
|
||||
cmd->scsi_sense_reason = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
|
||||
INIT_WORK(&cmd->work, target_complete_failure_work);
|
||||
} else {
|
||||
atomic_set(&cmd->t_transport_complete, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue