Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55216
b: refs/heads/master
c: 8a04899
h: refs/heads/master
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed May 6, 2007
1 parent fb27c75 commit d9f21e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 6bb0417074e914e8d002df20c419e67732ae103e
refs/heads/master: 8a048994f4be7d0b670a358cea7812c6d5232105
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4666,18 +4666,19 @@ static void ipr_erp_start(struct ipr_ioa_cfg *ioa_cfg,
struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd;
struct ipr_resource_entry *res = scsi_cmd->device->hostdata;
u32 ioasc = be32_to_cpu(ipr_cmd->ioasa.ioasc);
u32 masked_ioasc = ioasc & IPR_IOASC_IOASC_MASK;

if (!res) {
ipr_scsi_eh_done(ipr_cmd);
return;
}

if (!ipr_is_gscsi(res))
if (!ipr_is_gscsi(res) && masked_ioasc != IPR_IOASC_HW_DEV_BUS_STATUS)
ipr_gen_sense(ipr_cmd);

ipr_dump_ioasa(ioa_cfg, ipr_cmd, res);

switch (ioasc & IPR_IOASC_IOASC_MASK) {
switch (masked_ioasc) {
case IPR_IOASC_ABORTED_CMD_TERM_BY_HOST:
if (ipr_is_naca_model(res))
scsi_cmd->result |= (DID_ABORT << 16);
Expand Down

0 comments on commit d9f21e0

Please sign in to comment.