Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254364
b: refs/heads/master
c: 1fad9e9
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Skirvin authored and Dan Williams committed Jul 3, 2011
1 parent 207755b commit a43d42a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec6c9638b0d0537430f78a3e20503b5e68a537b6
refs/heads/master: 1fad9e934a43407c1ba397b1b6b8882aa8a2cafd
6 changes: 6 additions & 0 deletions trunk/drivers/scsi/isci/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,12 @@ int isci_request_execute(
*/
status = SCI_SUCCESS;
}
else
/* Save the tag for possible task mgmt later. */
request->io_tag = scic_io_request_get_io_tag(
request->sci_request_handle);


} else
dev_warn(&isci_host->pdev->dev,
"%s: failed request start\n",
Expand Down
10 changes: 4 additions & 6 deletions trunk/drivers/scsi/isci/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ void isci_task_build_tmf(
void (*tmf_sent_cb)(enum isci_tmf_cb_state,
struct isci_tmf *,
void *),
void *cb_data)
struct isci_request *old_request)
{
dev_dbg(&isci_device->isci_port->isci_host->pdev->dev,
"%s: isci_device = %p\n", __func__, isci_device);
Expand All @@ -555,7 +555,9 @@ void isci_task_build_tmf(
tmf->tmf_code = code;
tmf->timeout_timer = NULL;
tmf->cb_state_func = tmf_sent_cb;
tmf->cb_data = cb_data;
tmf->cb_data = old_request;
tmf->io_tag = old_request->io_tag;

}

static struct isci_request *isci_task_get_request_from_task(
Expand Down Expand Up @@ -1248,10 +1250,6 @@ int isci_task_abort_task(struct sas_task *task)
isci_task_build_tmf(&tmf, isci_device, isci_tmf_ssp_task_abort,
isci_abort_task_process_cb, old_request);

tmf.io_tag = scic_io_request_get_io_tag(
old_request->sci_request_handle
);

spin_unlock_irqrestore(&isci_host->scic_lock, flags);

#define ISCI_ABORT_TASK_TIMEOUT_MS 500 /* half second timeout. */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/isci/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void isci_task_build_tmf(
void (*tmf_sent_cb)(
enum isci_tmf_cb_state,
struct isci_tmf *, void *),
void *cb_data);
struct isci_request *old_request);

int isci_task_execute_tmf(
struct isci_host *isci_host,
Expand Down

0 comments on commit a43d42a

Please sign in to comment.