From: Matt Gates Date: Wed, 4 Dec 2013 23:10:36 +0000 (-0600) Subject: [SCSI] hpsa: allow SCSI mid layer to handle unit attention X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ce438df106826edde7ad724f3819716a3f0cf56;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Acked-by: Stephen M. Cameron Signed-off-by: James Bottomley --- 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) } if (ei->ScsiStatus == SAM_STAT_CHECK_CONDITION) { - if (check_for_unit_attention(h, cp)) { - cmd->result = DID_SOFT_ERROR << 16; + if (check_for_unit_attention(h, cp)) break; - } if (sense_key == ILLEGAL_REQUEST) { /* * SCSI REPORT_LUNS is commonly unsupported on