Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84384
b: refs/heads/master
c: 7fb1921
h: refs/heads/master
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Feb 8, 2008
1 parent 149ed78 commit 1b55608
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b635930de91be0a217292e3fe381af273e5ffaf7
refs/heads/master: 7fb1921b07a83f71a77f806a2a7d2dd721ea641b
12 changes: 12 additions & 0 deletions trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,21 @@ static int qla4xxx_queuecommand(struct scsi_cmnd *cmd,
{
struct scsi_qla_host *ha = to_qla_host(cmd->device->host);
struct ddb_entry *ddb_entry = cmd->device->hostdata;
struct iscsi_cls_session *sess = ddb_entry->sess;
struct srb *srb;
int rval;

if (!sess) {
cmd->result = DID_IMM_RETRY << 16;
goto qc_fail_command;
}

rval = iscsi_session_chkready(sess);
if (rval) {
cmd->result = rval;
goto qc_fail_command;
}

if (atomic_read(&ddb_entry->state) != DDB_STATE_ONLINE) {
if (atomic_read(&ddb_entry->state) == DDB_STATE_DEAD) {
cmd->result = DID_NO_CONNECT << 16;
Expand Down

0 comments on commit 1b55608

Please sign in to comment.