Commit ddcf834f authored by Robert Elliott's avatar Robert Elliott Committed by James Bottomley

hpsa: do not print ioaccel2 warning messages about unusual completions.

The SCSI midlayer already prints more detail about completions,
and has logging level options to filter them if not wanted.
These just slow down the system if a lot of errors occur,
stressing error handling even more.
Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Reviewed-by: default avatarKevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Reviewed-by: default avatarHannes Reinecke <hare@Suse.de>
Signed-off-by: default avatarRobert Elliott <elliott@hp.com>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 4b761557
...@@ -1871,9 +1871,6 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h, ...@@ -1871,9 +1871,6 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h,
case IOACCEL2_STATUS_SR_TASK_COMP_GOOD: case IOACCEL2_STATUS_SR_TASK_COMP_GOOD:
break; break;
case IOACCEL2_STATUS_SR_TASK_COMP_CHK_COND: case IOACCEL2_STATUS_SR_TASK_COMP_CHK_COND:
dev_warn(&h->pdev->dev,
"%s: task complete with check condition.\n",
"HP SSD Smart Path");
cmd->result |= SAM_STAT_CHECK_CONDITION; cmd->result |= SAM_STAT_CHECK_CONDITION;
if (c2->error_data.data_present != if (c2->error_data.data_present !=
IOACCEL2_SENSE_DATA_PRESENT) { IOACCEL2_SENSE_DATA_PRESENT) {
...@@ -1893,30 +1890,18 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h, ...@@ -1893,30 +1890,18 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h,
retry = 1; retry = 1;
break; break;
case IOACCEL2_STATUS_SR_TASK_COMP_BUSY: case IOACCEL2_STATUS_SR_TASK_COMP_BUSY:
dev_warn(&h->pdev->dev,
"%s: task complete with BUSY status.\n",
"HP SSD Smart Path");
retry = 1; retry = 1;
break; break;
case IOACCEL2_STATUS_SR_TASK_COMP_RES_CON: case IOACCEL2_STATUS_SR_TASK_COMP_RES_CON:
dev_warn(&h->pdev->dev,
"%s: task complete with reservation conflict.\n",
"HP SSD Smart Path");
retry = 1; retry = 1;
break; break;
case IOACCEL2_STATUS_SR_TASK_COMP_SET_FULL: case IOACCEL2_STATUS_SR_TASK_COMP_SET_FULL:
retry = 1; retry = 1;
break; break;
case IOACCEL2_STATUS_SR_TASK_COMP_ABORTED: case IOACCEL2_STATUS_SR_TASK_COMP_ABORTED:
dev_warn(&h->pdev->dev,
"%s: task complete with aborted status.\n",
"HP SSD Smart Path");
retry = 1; retry = 1;
break; break;
default: default:
dev_warn(&h->pdev->dev,
"%s: task complete with unrecognized status: 0x%02x\n",
"HP SSD Smart Path", c2->error_data.status);
retry = 1; retry = 1;
break; break;
} }
...@@ -1943,9 +1928,6 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h, ...@@ -1943,9 +1928,6 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h,
break; break;
default: default:
retry = 1; retry = 1;
dev_warn(&h->pdev->dev,
"unexpected delivery or target failure, status = 0x%02x\n",
c2->error_data.status);
} }
break; break;
case IOACCEL2_SERV_RESPONSE_TMF_COMPLETE: case IOACCEL2_SERV_RESPONSE_TMF_COMPLETE:
...@@ -1953,17 +1935,11 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h, ...@@ -1953,17 +1935,11 @@ static int handle_ioaccel_mode2_error(struct ctlr_info *h,
case IOACCEL2_SERV_RESPONSE_TMF_SUCCESS: case IOACCEL2_SERV_RESPONSE_TMF_SUCCESS:
break; break;
case IOACCEL2_SERV_RESPONSE_TMF_REJECTED: case IOACCEL2_SERV_RESPONSE_TMF_REJECTED:
dev_warn(&h->pdev->dev, "task management function rejected.\n");
retry = 1; retry = 1;
break; break;
case IOACCEL2_SERV_RESPONSE_TMF_WRONG_LUN: case IOACCEL2_SERV_RESPONSE_TMF_WRONG_LUN:
dev_warn(&h->pdev->dev, "task management function invalid LUN\n");
break; break;
default: default:
dev_warn(&h->pdev->dev,
"%s: Unrecognized server response: 0x%02x\n",
"HP SSD Smart Path",
c2->error_data.serv_response);
retry = 1; retry = 1;
break; break;
} }
......
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