diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-18 22:54:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-29 11:33:16 +0200 |
commit | f4df47e36ac052e772899b0d141daed1c9b008ae (patch) | |
tree | 4cffebc6fa6ed7dadcdffc9b026278675aa8bea6 | |
parent | 77df079be9b480fbac36d407e76df4c29d719407 (diff) | |
download | linux-stable-f4df47e36ac052e772899b0d141daed1c9b008ae.tar.gz linux-stable-f4df47e36ac052e772899b0d141daed1c9b008ae.tar.bz2 linux-stable-f4df47e36ac052e772899b0d141daed1c9b008ae.zip |
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 345f6035599e..f1d93676b0fc 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1995,6 +1995,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) |