Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26625
b: refs/heads/master
c: 2ea0020
h: refs/heads/master
i:
  26623: 944cb62
v: v3
  • Loading branch information
Michael Reed authored and James Bottomley committed Apr 27, 2006
1 parent b9c1e50 commit 80a3c04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: c005fb4fb2d23ba29ad21dee5042b2f8451ca8ba
refs/heads/master: 2ea0020250f6aeaec1ed3adf9069973a91eff57c
15 changes: 9 additions & 6 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ qla2x00_wait_for_loop_ready(scsi_qla_host_t *ha)
* Either SUCCESS or FAILED.
*
* Note:
* Only return FAILED if command not returned by firmware.
**************************************************************************/
int
qla2xxx_eh_abort(struct scsi_cmnd *cmd)
Expand All @@ -609,11 +610,12 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
unsigned int id, lun;
unsigned long serial;
unsigned long flags;
int wait = 0;

if (!CMD_SP(cmd))
return FAILED;
return SUCCESS;

ret = FAILED;
ret = SUCCESS;

id = cmd->device->id;
lun = cmd->device->lun;
Expand Down Expand Up @@ -642,7 +644,7 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
} else {
DEBUG3(printk("%s(%ld): abort_command "
"mbx success.\n", __func__, ha->host_no));
ret = SUCCESS;
wait = 1;
}
spin_lock_irqsave(&ha->hardware_lock, flags);

Expand All @@ -651,17 +653,18 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
spin_unlock_irqrestore(&ha->hardware_lock, flags);

/* Wait for the command to be returned. */
if (ret == SUCCESS) {
if (wait) {
if (qla2x00_eh_wait_on_command(ha, cmd) != QLA_SUCCESS) {
qla_printk(KERN_ERR, ha,
"scsi(%ld:%d:%d): Abort handler timed out -- %lx "
"%x.\n", ha->host_no, id, lun, serial, ret);
ret = FAILED;
}
}

qla_printk(KERN_INFO, ha,
"scsi(%ld:%d:%d): Abort command issued -- %lx %x.\n", ha->host_no,
id, lun, serial, ret);
"scsi(%ld:%d:%d): Abort command issued -- %d %lx %x.\n",
ha->host_no, id, lun, wait, serial, ret);

return ret;
}
Expand Down

0 comments on commit 80a3c04

Please sign in to comment.