aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaitra P B <chaitra.basappa@broadcom.com>2016-05-06 04:59:28 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-05-11 16:11:57 -0400
commit648512ccd7d42ccf761f515b7c0cb456a48c477a (patch)
treeabf6726d35e980f04df97bf77b353ea67b12bd2d
parenta470a51cd6481373cdf2b5934b1b9f7853688de9 (diff)
mpt3sas: Fix initial Reference tag field for 4K PI drives.
Modified driver code to use scsi_prot_ref_tag() API instead of scsi_get_lba(), while initializing reference tag field in the CDB. Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_scsih.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 4f2500b24c59..d256fc0fcc98 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -3959,7 +3959,7 @@ _scsih_setup_eedp(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd,
3959 MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG | 3959 MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG |
3960 MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD; 3960 MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD;
3961 mpi_request->CDB.EEDP32.PrimaryReferenceTag = 3961 mpi_request->CDB.EEDP32.PrimaryReferenceTag =
3962 cpu_to_be32(scsi_get_lba(scmd)); 3962 cpu_to_be32(scsi_prot_ref_tag(scmd));
3963 break; 3963 break;
3964 3964
3965 case SCSI_PROT_DIF_TYPE3: 3965 case SCSI_PROT_DIF_TYPE3: