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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index a90c299b723a..8d2125b520ea 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -179,7 +179,7 @@ static enum sci_status isci_io_request_build(
179 struct smp_discover_response_protocols dev_protocols; 179 struct smp_discover_response_protocols dev_protocols;
180 enum sci_status status = SCI_SUCCESS; 180 enum sci_status status = SCI_SUCCESS;
181 struct sas_task *task = isci_request_access_task(request); 181 struct sas_task *task = isci_request_access_task(request);
182 struct scic_sds_remote_device *sci_device = to_sci_dev(isci_device); 182 struct scic_sds_remote_device *sci_device = &isci_device->sci;
183 183
184 dev_dbg(&isci_host->pdev->dev, 184 dev_dbg(&isci_host->pdev->dev,
185 "%s: isci_device = 0x%p; request = %p, " 185 "%s: isci_device = 0x%p; request = %p, "
@@ -380,7 +380,7 @@ int isci_request_execute(
380 unsigned long flags; 380 unsigned long flags;
381 381
382 isci_device = task->dev->lldd_dev; 382 isci_device = task->dev->lldd_dev;
383 sci_device = to_sci_dev(isci_device); 383 sci_device = &isci_device->sci;
384 384
385 /* do common allocation and init of request object. */ 385 /* do common allocation and init of request object. */
386 ret = isci_request_alloc_io( 386 ret = isci_request_alloc_io(
@@ -1194,11 +1194,9 @@ void isci_request_io_request_complete(
1194 ); 1194 );
1195 1195
1196 /* complete the io request to the core. */ 1196 /* complete the io request to the core. */
1197 scic_controller_complete_io( 1197 scic_controller_complete_io(isci_host->core_controller,
1198 isci_host->core_controller, 1198 &isci_device->sci,
1199 to_sci_dev(isci_device), 1199 request->sci_request_handle);
1200 request->sci_request_handle
1201 );
1202 /* NULL the request handle so it cannot be completed or 1200 /* NULL the request handle so it cannot be completed or
1203 * terminated again, and to cause any calls into abort 1201 * terminated again, and to cause any calls into abort
1204 * task to recognize the already completed case. 1202 * task to recognize the already completed case.