mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-04 04:44:37 +08:00
scsi: smartpqi: Disable WRITE SAME for HBA NVMe disks
Controller does not support SCSI WRITE SAME for NVMe drives in HBA mode Link: https://lore.kernel.org/r/161549376866.25025.5961694654342018260.stgit@brunhilda Reviewed-by: Scott Benesh <scott.benesh@microchip.com> Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com> Reviewed-by: Scott Teel <scott.teel@microchip.com> Reviewed-by: Martin Wilck <mwilck@suse.com> Signed-off-by: Kevin Barnett <kevin.barnett@microchip.com> Signed-off-by: Don Brace <don.brace@microchip.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
5be746d7d7
commit
99a12b487f
@ -6252,10 +6252,13 @@ static int pqi_slave_alloc(struct scsi_device *sdev)
|
||||
scsi_change_queue_depth(sdev,
|
||||
device->advertised_queue_depth);
|
||||
}
|
||||
if (pqi_is_logical_device(device))
|
||||
if (pqi_is_logical_device(device)) {
|
||||
pqi_disable_write_same(sdev);
|
||||
else
|
||||
} else {
|
||||
sdev->allow_restart = 1;
|
||||
if (device->device_type == SA_DEVICE_TYPE_NVME)
|
||||
pqi_disable_write_same(sdev);
|
||||
}
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&ctrl_info->scsi_device_list_lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user