diff options
author | James Smart <james.smart@emulex.com> | 2010-02-26 14:13:54 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-03 08:38:58 -0500 |
commit | e40a02c12581f710877da372b5d7e15b68a1c5c3 (patch) | |
tree | e26d0d655a8179553fbf05c7efab0da083448377 /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | 9f1177a3f8eee22427eb97e6e00b62ff0be2871f (diff) |
[SCSI] lpfc 8.3.10: Fix user interface issues
- Add Logging message for critial errors.
- Remove unused variable from lpfc_nodev_tmo_show
- Update supress_link_up parameter with #define values.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 7f21b47db791..889a7b9ec92b 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -2079,8 +2079,7 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, | |||
2079 | 2079 | ||
2080 | if (resp_info & RSP_LEN_VALID) { | 2080 | if (resp_info & RSP_LEN_VALID) { |
2081 | rsplen = be32_to_cpu(fcprsp->rspRspLen); | 2081 | rsplen = be32_to_cpu(fcprsp->rspRspLen); |
2082 | if ((rsplen != 0 && rsplen != 4 && rsplen != 8) || | 2082 | if (rsplen != 0 && rsplen != 4 && rsplen != 8) { |
2083 | (fcprsp->rspInfo3 != RSP_NO_FAILURE)) { | ||
2084 | lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, | 2083 | lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, |
2085 | "2719 Invalid response length: " | 2084 | "2719 Invalid response length: " |
2086 | "tgt x%x lun x%x cmnd x%x rsplen x%x\n", | 2085 | "tgt x%x lun x%x cmnd x%x rsplen x%x\n", |
@@ -2090,6 +2089,17 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, | |||
2090 | host_status = DID_ERROR; | 2089 | host_status = DID_ERROR; |
2091 | goto out; | 2090 | goto out; |
2092 | } | 2091 | } |
2092 | if (fcprsp->rspInfo3 != RSP_NO_FAILURE) { | ||
2093 | lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, | ||
2094 | "2757 Protocol failure detected during " | ||
2095 | "processing of FCP I/O op: " | ||
2096 | "tgt x%x lun x%x cmnd x%x rspInfo3 x%x\n", | ||
2097 | cmnd->device->id, | ||
2098 | cmnd->device->lun, cmnd->cmnd[0], | ||
2099 | fcprsp->rspInfo3); | ||
2100 | host_status = DID_ERROR; | ||
2101 | goto out; | ||
2102 | } | ||
2093 | } | 2103 | } |
2094 | 2104 | ||
2095 | if ((resp_info & SNS_LEN_VALID) && fcprsp->rspSnsLen) { | 2105 | if ((resp_info & SNS_LEN_VALID) && fcprsp->rspSnsLen) { |