summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/task.c
diff options
context:
space:
mode:
authorArtur Wojcik <artur.wojcik@intel.com>2011-05-04 07:58:16 +0000
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:46 -0700
commitcc3dbd0a9178865d4444f8e28b51715808e9ac85 (patch)
tree4f8da28b4740e0ddaeb3163a3d317f36bc49571c /drivers/scsi/isci/task.c
parentd06b487b78f28a02efdcdcc9ec295bf230b9d0e8 (diff)
isci: unify isci_host data structures
Make it explicit that isci_host and scic_sds_controller are one in the same object. Signed-off-by: Artur Wojcik <artur.wojcik@intel.com> [removed ->ihost back pointer] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/task.c')
-rw-r--r--drivers/scsi/isci/task.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index 3a3f54677e5..cabad0b03ee 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -299,7 +299,7 @@ static enum sci_status isci_task_request_build(
/* let the core do it's construct. */
status = scic_task_request_construct(
- isci_host->core_controller,
+ &isci_host->sci,
sci_device,
SCI_CONTROLLER_INVALID_IO_TAG,
request,
@@ -378,7 +378,7 @@ static void isci_tmf_timeout_cb(void *tmf_request_arg)
/* Terminate the TMF transmit request. */
status = scic_controller_terminate_request(
- request->isci_host->core_controller,
+ &request->isci_host->sci,
&request->isci_device->sci,
request->sci_request_handle
);
@@ -469,7 +469,7 @@ int isci_task_execute_tmf(
/* start the TMF io. */
status = scic_controller_start_task(
- isci_host->core_controller,
+ &isci_host->sci,
sci_device,
request->sci_request_handle,
SCI_CONTROLLER_INVALID_IO_TAG
@@ -772,7 +772,7 @@ static void isci_terminate_request_core(
was_terminated = true;
needs_cleanup_handling = true;
status = scic_controller_terminate_request(
- isci_host->core_controller,
+ &isci_host->sci,
&isci_device->sci,
isci_request->sci_request_handle);
}
@@ -1466,12 +1466,9 @@ isci_task_request_complete(struct isci_host *ihost,
/* PRINT_TMF( ((struct isci_tmf *)request->task)); */
tmf_complete = tmf->complete;
- scic_controller_complete_io(ihost->core_controller,
- &idev->sci,
+ scic_controller_complete_io(&ihost->sci, &idev->sci,
ireq->sci_request_handle);
-
- /*
- * NULL the request handle to make sure it cannot be terminated
+ /* NULL the request handle to make sure it cannot be terminated
* or completed again.
*/
ireq->sci_request_handle = NULL;