Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115439
b: refs/heads/master
c: 7b59413
h: refs/heads/master
i:
  115437: 8fd895b
  115435: 68fed8b
  115431: ca81d3a
  115423: 0aab9fe
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Oct 13, 2008
1 parent c73ca22 commit a8c9dbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 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: c5e98e912c5423a0ec2eed7aa1064578d44f8a8e
refs/heads/master: 7b594131c4f38edeb13d8c6c0147949173c47013
26 changes: 12 additions & 14 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,18 +394,16 @@ qla2x00_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
}

/* Close window on fcport/rport state-transitioning. */
if (fcport->drport) {
cmd->result = DID_IMM_RETRY << 16;
goto qc_fail_command;
}
if (fcport->drport)
goto qc_target_busy;

if (atomic_read(&fcport->state) != FCS_ONLINE) {
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
atomic_read(&ha->loop_state) == LOOP_DEAD) {
cmd->result = DID_NO_CONNECT << 16;
goto qc_fail_command;
}
goto qc_host_busy;
goto qc_target_busy;
}

spin_unlock_irq(ha->host->host_lock);
Expand All @@ -428,10 +426,11 @@ qla2x00_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))

qc_host_busy_lock:
spin_lock_irq(ha->host->host_lock);

qc_host_busy:
return SCSI_MLQUEUE_HOST_BUSY;

qc_target_busy:
return SCSI_MLQUEUE_TARGET_BUSY;

qc_fail_command:
done(cmd);

Expand Down Expand Up @@ -461,18 +460,16 @@ qla24xx_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
}

/* Close window on fcport/rport state-transitioning. */
if (fcport->drport) {
cmd->result = DID_IMM_RETRY << 16;
goto qc24_fail_command;
}
if (fcport->drport)
goto qc24_target_busy;

if (atomic_read(&fcport->state) != FCS_ONLINE) {
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
atomic_read(&pha->loop_state) == LOOP_DEAD) {
cmd->result = DID_NO_CONNECT << 16;
goto qc24_fail_command;
}
goto qc24_host_busy;
goto qc24_target_busy;
}

spin_unlock_irq(ha->host->host_lock);
Expand All @@ -495,10 +492,11 @@ qla24xx_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))

qc24_host_busy_lock:
spin_lock_irq(ha->host->host_lock);

qc24_host_busy:
return SCSI_MLQUEUE_HOST_BUSY;

qc24_target_busy:
return SCSI_MLQUEUE_TARGET_BUSY;

qc24_fail_command:
done(cmd);

Expand Down

0 comments on commit a8c9dbb

Please sign in to comment.