Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86174
b: refs/heads/master
c: cb84e2d
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed Feb 18, 2008
1 parent 716b852 commit 174c207
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 691b4773aa556d0975dbc25c93e6c8b839dad325
refs/heads/master: cb84e2d2ff3b50c0da5a7604a6d8634294a00a01
14 changes: 10 additions & 4 deletions trunk/drivers/scsi/aic94xx/aic94xx_scb.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,19 @@ static void escb_tasklet_complete(struct asd_ascb *ascb,
tc_abort = le16_to_cpu(tc_abort);

list_for_each_entry_safe(a, b, &asd_ha->seq.pend_q, list) {
struct sas_task *task = ascb->uldd_task;
struct sas_task *task = a->uldd_task;

if (a->tc_index != tc_abort)
continue;

if (task && a->tc_index == tc_abort) {
if (task) {
failed_dev = task->dev;
sas_task_abort(task);
break;
} else {
ASD_DPRINTK("R_T_A for non TASK scb 0x%x\n",
a->scb->header.opcode);
}
break;
}

if (!failed_dev) {
Expand All @@ -478,7 +484,7 @@ static void escb_tasklet_complete(struct asd_ascb *ascb,
* that the EH will wake up and do something.
*/
list_for_each_entry_safe(a, b, &asd_ha->seq.pend_q, list) {
struct sas_task *task = ascb->uldd_task;
struct sas_task *task = a->uldd_task;

if (task &&
task->dev == failed_dev &&
Expand Down

0 comments on commit 174c207

Please sign in to comment.