OpenCloudOS-Kernel/drivers/scsi/smartpqi
Mahesh Rajashekhara 4155dff76a scsi: smartpqi: correct stream detection
[ Upstream commit 4c76114932d1d6fad2e72823e7898a3c960cf2a7 ]

Correct stream detection by initializing the structure
pqi_scsi_dev_raid_map_data to 0s.

When the OS issues SCSI READ commands, the driver erroneously considers
them as SCSI WRITES. If they are identified as sequential IOs, the driver
then submits those requests via the RAID path instead of the AIO path.

The 'is_write' flag might be set for SCSI READ commands also.  The driver
may interpret SCSI READ commands as SCSI WRITE commands, resulting in IOs
being submitted through the RAID path.

Note: This does not cause data corruption.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Signed-off-by: Mahesh Rajashekhara <mahesh.rajashekhara@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/20240827185501.692804-3-don.brace@microchip.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-10 11:57:34 +02:00
..
Kconfig scsi: smartpqi: Update copyright to 2023 2023-05-08 07:17:12 -04:00
Makefile
smartpqi.h scsi: smartpqi: Fix logical volume rescan race condition 2024-03-01 13:34:48 +01:00
smartpqi_init.c scsi: smartpqi: correct stream detection 2024-10-10 11:57:34 +02:00
smartpqi_sas_transport.c scsi: smartpqi: Update copyright to 2023 2023-05-08 07:17:12 -04:00
smartpqi_sis.c scsi: smartpqi: Update copyright to 2023 2023-05-08 07:17:12 -04:00
smartpqi_sis.h scsi: smartpqi: Update copyright to 2023 2023-05-08 07:17:12 -04:00