Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221515
b: refs/heads/master
c: a1e0063
h: refs/heads/master
i:
  221513: 43df779
  221511: 3355e48
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Oct 26, 2010
1 parent 8dbbb94 commit 8d05b2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: e340c3537239d5b6a2b21d4245c8577d457b0476
refs/heads/master: a1e0063d0c015145946981262f8d5f9758d8a895
8 changes: 7 additions & 1 deletion trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,13 @@ static int qla4xxx_cmd_wait(struct scsi_qla_host *ha)
/* Find a command that hasn't completed. */
for (index = 0; index < ha->host->can_queue; index++) {
cmd = scsi_host_find_tag(ha->host, index);
if (cmd != NULL)
/*
* We cannot just check if the index is valid,
* becase if we are run from the scsi eh, then
* the scsi/block layer is going to prevent
* the tag from being released.
*/
if (cmd != NULL && CMD_SP(cmd))
break;
}
spin_unlock_irqrestore(&ha->hardware_lock, flags);
Expand Down

0 comments on commit 8d05b2d

Please sign in to comment.