[SCSI] lpfc 8.3.41: Fixed SLI3 failing FCP write on check-condition no-sense with...
authorJames Smart <james.smart@emulex.com>
Mon, 15 Jul 2013 22:34:05 +0000 (18:34 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 23 Aug 2013 17:20:40 +0000 (13:20 -0400)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_scsi.c

index 76a583a..4261469 100644 (file)
@@ -4386,12 +4386,7 @@ lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
        if (scsi_sg_count(scsi_cmnd)) {
                if (datadir == DMA_TO_DEVICE) {
                        iocb_cmd->ulpCommand = CMD_FCP_IWRITE64_CR;
-                       if (sli4)
-                               iocb_cmd->ulpPU = PARM_READ_CHECK;
-                       else {
-                               iocb_cmd->un.fcpi.fcpi_parm = 0;
-                               iocb_cmd->ulpPU = 0;
-                       }
+                       iocb_cmd->ulpPU = PARM_READ_CHECK;
                        fcp_cmnd->fcpCntl3 = WRITE_DATA;
                        phba->fc4OutputRequests++;
                } else {