aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/request.c')
-rw-r--r--drivers/scsi/isci/request.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index f19a952754b9..015643104311 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -809,11 +809,11 @@ static void isci_task_save_for_upper_layer_completion(
809 809
810 /* Normal notification (task_done) */ 810 /* Normal notification (task_done) */
811 dev_dbg(&host->pdev->dev, 811 dev_dbg(&host->pdev->dev,
812 "%s: Normal - task = %p, response=%d, status=%d\n", 812 "%s: Normal - task = %p, response=%d (%d), status=%d (%d)\n",
813 __func__, 813 __func__,
814 task, 814 task,
815 response, 815 task->task_status.resp, response,
816 status); 816 task->task_status.stat, status);
817 /* Add to the completed list. */ 817 /* Add to the completed list. */
818 list_add(&request->completed_node, 818 list_add(&request->completed_node,
819 &host->requests_to_complete); 819 &host->requests_to_complete);
@@ -827,11 +827,11 @@ static void isci_task_save_for_upper_layer_completion(
827 * already in the abort path. 827 * already in the abort path.
828 */ 828 */
829 dev_warn(&host->pdev->dev, 829 dev_warn(&host->pdev->dev,
830 "%s: Aborted - task = %p, response=%d, status=%d\n", 830 "%s: Aborted - task = %p, response=%d (%d), status=%d (%d)\n",
831 __func__, 831 __func__,
832 task, 832 task,
833 response, 833 task->task_status.resp, response,
834 status); 834 task->task_status.stat, status);
835 835
836 /* Wake up whatever process was waiting for this 836 /* Wake up whatever process was waiting for this
837 * request to complete. 837 * request to complete.
@@ -850,11 +850,11 @@ static void isci_task_save_for_upper_layer_completion(
850 case isci_perform_error_io_completion: 850 case isci_perform_error_io_completion:
851 /* Use sas_task_abort */ 851 /* Use sas_task_abort */
852 dev_warn(&host->pdev->dev, 852 dev_warn(&host->pdev->dev,
853 "%s: Error - task = %p, response=%d, status=%d\n", 853 "%s: Error - task = %p, response=%d (%d), status=%d (%d)\n",
854 __func__, 854 __func__,
855 task, 855 task,
856 response, 856 task->task_status.resp, response,
857 status); 857 task->task_status.stat, status);
858 /* Add to the aborted list. */ 858 /* Add to the aborted list. */
859 list_add(&request->completed_node, 859 list_add(&request->completed_node,
860 &host->requests_to_errorback); 860 &host->requests_to_errorback);
@@ -862,11 +862,11 @@ static void isci_task_save_for_upper_layer_completion(
862 862
863 default: 863 default:
864 dev_warn(&host->pdev->dev, 864 dev_warn(&host->pdev->dev,
865 "%s: Unknown - task = %p, response=%d, status=%d\n", 865 "%s: Unknown - task = %p, response=%d (%d), status=%d (%d)\n",
866 __func__, 866 __func__,
867 task, 867 task,
868 response, 868 task->task_status.resp, response,
869 status); 869 task->task_status.stat, status);
870 870
871 /* Add to the error to libsas list. */ 871 /* Add to the error to libsas list. */
872 list_add(&request->completed_node, 872 list_add(&request->completed_node,
@@ -1165,6 +1165,10 @@ void isci_request_io_request_complete(
1165 task->task_state_flags |= SAS_TASK_NEED_DEV_RESET; 1165 task->task_state_flags |= SAS_TASK_NEED_DEV_RESET;
1166 spin_unlock_irqrestore(&task->task_state_lock, task_flags); 1166 spin_unlock_irqrestore(&task->task_state_lock, task_flags);
1167 1167
1168 /* Fail the I/O. */
1169 response = SAS_TASK_UNDELIVERED;
1170 status = SAM_STAT_TASK_ABORTED;
1171
1168 complete_to_host = isci_perform_error_io_completion; 1172 complete_to_host = isci_perform_error_io_completion;
1169 request->complete_in_target = false; 1173 request->complete_in_target = false;
1170 break; 1174 break;