aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 243e792f2407..150e78dd00b2 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -3040,18 +3040,18 @@ zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *fsf_req)
3040 * DID_SOFT_ERROR by retrying the request for devices 3040 * DID_SOFT_ERROR by retrying the request for devices
3041 * that allow retries. 3041 * that allow retries.
3042 */ 3042 */
3043 set_host_byte(&scpnt->result, DID_SOFT_ERROR); 3043 set_host_byte(scpnt, DID_SOFT_ERROR);
3044 set_driver_byte(&scpnt->result, SUGGEST_RETRY); 3044 set_driver_byte(scpnt, SUGGEST_RETRY);
3045 goto skip_fsfstatus; 3045 goto skip_fsfstatus;
3046 } 3046 }
3047 3047
3048 if (unlikely(fsf_req->status & ZFCP_STATUS_FSFREQ_ERROR)) { 3048 if (unlikely(fsf_req->status & ZFCP_STATUS_FSFREQ_ERROR)) {
3049 set_host_byte(&scpnt->result, DID_ERROR); 3049 set_host_byte(scpnt, DID_ERROR);
3050 goto skip_fsfstatus; 3050 goto skip_fsfstatus;
3051 } 3051 }
3052 3052
3053 /* set message byte of result in SCSI command */ 3053 /* set message byte of result in SCSI command */
3054 scpnt->result |= COMMAND_COMPLETE << 8; 3054 set_msg_byte(scpnt, COMMAND_COMPLETE);
3055 3055
3056 /* 3056 /*
3057 * copy SCSI status code of FCP_STATUS of FCP_RSP IU to status byte 3057 * copy SCSI status code of FCP_STATUS of FCP_RSP IU to status byte
@@ -3067,23 +3067,23 @@ zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *fsf_req)
3067 switch (fcp_rsp_info[3]) { 3067 switch (fcp_rsp_info[3]) {
3068 case RSP_CODE_GOOD: 3068 case RSP_CODE_GOOD:
3069 /* ok, continue */ 3069 /* ok, continue */
3070 set_host_byte(&scpnt->result, DID_OK); 3070 set_host_byte(scpnt, DID_OK);
3071 break; 3071 break;
3072 case RSP_CODE_LENGTH_MISMATCH: 3072 case RSP_CODE_LENGTH_MISMATCH:
3073 /* hardware bug */ 3073 /* hardware bug */
3074 set_host_byte(&scpnt->result, DID_ERROR); 3074 set_host_byte(scpnt, DID_ERROR);
3075 goto skip_fsfstatus; 3075 goto skip_fsfstatus;
3076 case RSP_CODE_FIELD_INVALID: 3076 case RSP_CODE_FIELD_INVALID:
3077 /* driver or hardware bug */ 3077 /* driver or hardware bug */
3078 set_host_byte(&scpnt->result, DID_ERROR); 3078 set_host_byte(scpnt, DID_ERROR);
3079 goto skip_fsfstatus; 3079 goto skip_fsfstatus;
3080 case RSP_CODE_RO_MISMATCH: 3080 case RSP_CODE_RO_MISMATCH:
3081 /* hardware bug */ 3081 /* hardware bug */
3082 set_host_byte(&scpnt->result, DID_ERROR); 3082 set_host_byte(scpnt, DID_ERROR);
3083 goto skip_fsfstatus; 3083 goto skip_fsfstatus;
3084 default: 3084 default:
3085 /* invalid FCP response code */ 3085 /* invalid FCP response code */
3086 set_host_byte(&scpnt->result, DID_ERROR); 3086 set_host_byte(scpnt, DID_ERROR);
3087 goto skip_fsfstatus; 3087 goto skip_fsfstatus;
3088 } 3088 }
3089 } 3089 }
@@ -3104,7 +3104,7 @@ zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *fsf_req)
3104 scsi_set_resid(scpnt, fcp_rsp_iu->fcp_resid); 3104 scsi_set_resid(scpnt, fcp_rsp_iu->fcp_resid);
3105 if (scsi_bufflen(scpnt) - scsi_get_resid(scpnt) < 3105 if (scsi_bufflen(scpnt) - scsi_get_resid(scpnt) <
3106 scpnt->underflow) 3106 scpnt->underflow)
3107 set_host_byte(&scpnt->result, DID_ERROR); 3107 set_host_byte(scpnt, DID_ERROR);
3108 } 3108 }
3109 3109
3110 skip_fsfstatus: 3110 skip_fsfstatus: