Commit 3ce438df authored by Matt Gates's avatar Matt Gates Committed by James Bottomley

[SCSI] hpsa: allow SCSI mid layer to handle unit attention

We were clobbering the SCSI status and setting
cmd->result = DID_SOFT_ERROR << 16; to get a retry,
but better to let the mid layer handle the unit
attention.
Signed-off-by: default avatarMatt Gates <matthew.gates@hp.com>
Acked-by: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 0ddf1d77
...@@ -1241,10 +1241,8 @@ static void complete_scsi_command(struct CommandList *cp) ...@@ -1241,10 +1241,8 @@ static void complete_scsi_command(struct CommandList *cp)
} }
if (ei->ScsiStatus == SAM_STAT_CHECK_CONDITION) { if (ei->ScsiStatus == SAM_STAT_CHECK_CONDITION) {
if (check_for_unit_attention(h, cp)) { if (check_for_unit_attention(h, cp))
cmd->result = DID_SOFT_ERROR << 16;
break; break;
}
if (sense_key == ILLEGAL_REQUEST) { if (sense_key == ILLEGAL_REQUEST) {
/* /*
* SCSI REPORT_LUNS is commonly unsupported on * SCSI REPORT_LUNS is commonly unsupported on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment