diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-19 05:54:59 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2018-10-21 10:45:31 +0300 |
commit | d8787ef3d7bc273663bed0ee26bbfec0a34149fd (patch) | |
tree | bace0a623117b4ddd01c4c99f2a90fba8c2f600c | |
parent | e87e32c548692f61c4736f262718c6c99200ea7e (diff) | |
download | linux-d8787ef3d7bc273663bed0ee26bbfec0a34149fd.tar.xz |
scsi: mptsas: Disable WRITE SAME
commit 94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84 upstream.
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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/message/fusion/mptsas.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 711fcb5cec87..06a52f823282 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1996,6 +1996,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) |