mptfusion: enable no_write_same for vmware scsi disks
[cascardo/linux.git] / drivers / message / fusion / mptspi.c
index 787933d..613231c 100644 (file)
@@ -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