summaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2018-04-19 04:54:59 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-19 05:37:25 +0200
commit94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84 (patch)
treed627938e16b17faf88062c0eee16763adb394e7e /drivers/message
parentscsi: fnic: fix spelling mistake in fnic stats "Abord" -> "Abort" (diff)
downloadlinux-94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84.tar.xz
linux-94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84.zip
scsi: mptsas: Disable WRITE SAME
First generation MPT Fusion controllers can not translate WRITE SAME when the attached device is a SATA drive. Disable WRITE SAME support. Reported-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Cc: <stable@vger.kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptsas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index 231f3a1e27bf..86503f60468f 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -1994,6 +1994,7 @@ static struct scsi_host_template mptsas_driver_template = {
.cmd_per_lun = 7,
.use_clustering = ENABLE_CLUSTERING,
.shost_attrs = mptscsih_host_attrs,
+ .no_write_same = 1,
};
static int mptsas_get_linkerrors(struct sas_phy *phy)