Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252461
b: refs/heads/master
c: 3673f4b
h: refs/heads/master
i:
  252459: 66d09f0
v: v3
  • Loading branch information
Dan Williams authored and James Bottomley committed May 27, 2011
1 parent 7e3c686 commit e286ab9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 90f1e10d08bad84f8fd15d3469a60d437d4de64f
refs/heads/master: 3673f4bf6a277f4f2944ad153ceb167b340f9ffc
14 changes: 7 additions & 7 deletions trunk/drivers/scsi/libsas/sas_scsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ static int sas_queuecommand_lck(struct scsi_cmnd *cmd,
struct sas_ha_struct *sas_ha = dev->port->ha;
struct sas_task *task;

/* If the device fell off, no sense in issuing commands */
if (dev->gone) {
cmd->result = DID_BAD_TARGET << 16;
scsi_done(cmd);
goto out;
}

if (dev_is_sata(dev)) {
unsigned long flags;

Expand All @@ -216,13 +223,6 @@ static int sas_queuecommand_lck(struct scsi_cmnd *cmd,
goto out;
}

/* If the device fell off, no sense in issuing commands */
if (dev->gone) {
cmd->result = DID_BAD_TARGET << 16;
scsi_done(cmd);
goto out;
}

res = -ENOMEM;
task = sas_create_task(cmd, dev, GFP_ATOMIC);
if (!task)
Expand Down

0 comments on commit e286ab9

Please sign in to comment.