2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00
linux-next/drivers/scsi/hisi_sas
Xiang Chen 3e178f3ecf scsi: hisi_sas: Free slot later in slot_complete_vx_hw()
If an SSP/SMP IO times out, it may be actually in reality be
simultaneously processing completion of the slot in
slot_complete_vx_hw().

Then if the slot is freed in slot_complete_vx_hw() (this IPTT is freed
and it may be re-used by other slot), and we may abort the wrong slot in
hisi_sas_abort_task().

So to solve the issue, free the slot after the check of
SAS_TASK_STATE_ABORTED in slot_complete_vx_hw().

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-10-16 00:27:04 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Fix the race between IO completion and timeout for SMP/internal IO 2018-10-16 00:27:04 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: add memory barrier in task delivery function 2018-07-19 21:57:40 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Free slot later in slot_complete_vx_hw() 2018-10-16 00:27:04 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: Free slot later in slot_complete_vx_hw() 2018-10-16 00:27:04 -04:00
hisi_sas.h scsi: hisi_sas: tidy host controller reset function a bit 2018-07-19 21:57:39 -04:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00