diff options
author | Matt Gates <matthew.gates@hp.com> | 2013-12-04 18:10:36 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-12-19 23:56:30 -0500 |
commit | 3ce438df106826edde7ad724f3819716a3f0cf56 (patch) | |
tree | 3cfd390bb4d67907f0d9f1c4ed145beb3d19eb0c /drivers/scsi | |
parent | 0ddf1d77505fd97daa7fc70bb0498c54a5c33725 (diff) |
[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: Matt Gates <matthew.gates@hp.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hpsa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index d5f2ff9918fa..868318a7067c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -1241,10 +1241,8 @@ static void complete_scsi_command(struct CommandList *cp) | |||
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | if (ei->ScsiStatus == SAM_STAT_CHECK_CONDITION) { | 1243 | if (ei->ScsiStatus == SAM_STAT_CHECK_CONDITION) { |
1244 | if (check_for_unit_attention(h, cp)) { | 1244 | if (check_for_unit_attention(h, cp)) |
1245 | cmd->result = DID_SOFT_ERROR << 16; | ||
1246 | break; | 1245 | break; |
1247 | } | ||
1248 | if (sense_key == ILLEGAL_REQUEST) { | 1246 | if (sense_key == ILLEGAL_REQUEST) { |
1249 | /* | 1247 | /* |
1250 | * SCSI REPORT_LUNS is commonly unsupported on | 1248 | * SCSI REPORT_LUNS is commonly unsupported on |