diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2012-08-28 14:29:35 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-24 04:11:00 -0400 |
commit | d974e4265dbd35db118c318176727ecb7f469de3 (patch) | |
tree | fbec9c25dbed708722d334601ed0adcf38f210cd /drivers/scsi | |
parent | 8172499aae4d375334cfe6361900929c3b31a03f (diff) |
[SCSI] Disable DIF on Hitachi Ultrastar 15K300
Hitachi Ultrastar 15K300 is quirky. Disable T10 PI (DIF).
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_devinfo.c | 1 | ||||
-rw-r--r-- | drivers/scsi/scsi_scan.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c index cf8dfab9489f..43fca9170bf2 100644 --- a/drivers/scsi/scsi_devinfo.c +++ b/drivers/scsi/scsi_devinfo.c | |||
@@ -172,6 +172,7 @@ static struct { | |||
172 | {"HITACHI", "DF400", "*", BLIST_REPORTLUN2}, | 172 | {"HITACHI", "DF400", "*", BLIST_REPORTLUN2}, |
173 | {"HITACHI", "DF500", "*", BLIST_REPORTLUN2}, | 173 | {"HITACHI", "DF500", "*", BLIST_REPORTLUN2}, |
174 | {"HITACHI", "DISK-SUBSYSTEM", "*", BLIST_REPORTLUN2}, | 174 | {"HITACHI", "DISK-SUBSYSTEM", "*", BLIST_REPORTLUN2}, |
175 | {"HITACHI", "HUS1530", "*", BLIST_NO_DIF}, | ||
175 | {"HITACHI", "OPEN-", "*", BLIST_REPORTLUN2}, | 176 | {"HITACHI", "OPEN-", "*", BLIST_REPORTLUN2}, |
176 | {"HITACHI", "OP-C-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, | 177 | {"HITACHI", "OP-C-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, |
177 | {"HITACHI", "3380-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, | 178 | {"HITACHI", "3380-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, |
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 56a93794c470..0a224e29c3f1 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -911,6 +911,9 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result, | |||
911 | if (*bflags & BLIST_RETRY_HWERROR) | 911 | if (*bflags & BLIST_RETRY_HWERROR) |
912 | sdev->retry_hwerror = 1; | 912 | sdev->retry_hwerror = 1; |
913 | 913 | ||
914 | if (*bflags & BLIST_NO_DIF) | ||
915 | sdev->no_dif = 1; | ||
916 | |||
914 | transport_configure_device(&sdev->sdev_gendev); | 917 | transport_configure_device(&sdev->sdev_gendev); |
915 | 918 | ||
916 | if (sdev->host->hostt->slave_configure) { | 919 | if (sdev->host->hostt->slave_configure) { |