projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mptfusion: enable no_write_same for vmware scsi disks
[cascardo/linux.git]
/
drivers
/
message
/
fusion
/
mptspi.c
diff --git
a/drivers/message/fusion/mptspi.c
b/drivers/message/fusion/mptspi.c
index
787933d
..
613231c
100644
(file)
--- a/
drivers/message/fusion/mptspi.c
+++ b/
drivers/message/fusion/mptspi.c
@@
-1419,6
+1419,11
@@
mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
goto out_mptspi_probe;
}
+ /* VMWare emulation doesn't properly implement WRITE_SAME
+ */
+ if (pdev->subsystem_vendor == 0x15AD)
+ sh->no_write_same = 1;
+
spin_lock_irqsave(&ioc->FreeQlock, flags);
/* Attach the SCSI Host to the IOC structure