RE: [PATCH] mpt2sas: Fix missing reference tag seed with Type 2 devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James,

We discuss this patch internally and found as valid candidate to be ACKed.
Please consider this patch as an ACKed.

Thanks, Kashyap

> -----Original Message-----
> From: Martin K. Petersen [mailto:martin.petersen@xxxxxxxxxx]
> Sent: Tuesday, March 08, 2011 12:30 PM
> To: linux-scsi@xxxxxxxxxxxxxxx; James.Bottomley@xxxxxxxxxxxxxxxxxxxxx;
> Desai, Kashyap; Moore, Eric
> Subject: [PATCH] mpt2sas: Fix missing reference tag seed with Type 2
> devices
> 
> 
> Ensure that the initial reference tag is passed on to the HBA firmware
> for DIF Type 2 devices.
> 
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> 
> diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
> b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
> index 16e99b6..f423fe9 100644
> --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
> +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
> @@ -3230,6 +3230,7 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd,
> Mpi2SCSIIORequest_t *mpi_request)
> 
>  	switch (prot_type) {
>  	case SCSI_PROT_DIF_TYPE1:
> +	case SCSI_PROT_DIF_TYPE2:
> 
>  		/*
>  		* enable ref/guard checking
> @@ -3242,13 +3243,6 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd,
> Mpi2SCSIIORequest_t *mpi_request)
>  		    cpu_to_be32(scsi_get_lba(scmd));
>  		break;
> 
> -	case SCSI_PROT_DIF_TYPE2:
> -
> -		eedp_flags |= MPI2_SCSIIO_EEDPFLAGS_INC_PRI_REFTAG |
> -		    MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG |
> -		    MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD;
> -		break;
> -
>  	case SCSI_PROT_DIF_TYPE3:
> 
>  		/*
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux