scsi: hisi_sas: Free the slot after the check of SAS_TASK_STATE_ABORTED in...
scsi: hisi_sas: Free the slot after the check of SAS_TASK_STATE_ABORTED in function slot_complete_vx_hw() If SSP/SMP IO timeout, it may also be in function slot_complete_vx_hw(). Then if 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: NXiang Chen <chenxiang66@hisilicon.com> Signed-off-by: NJohn Garry <john.garry@huawei.com>
Showing
想要评论请 注册 或 登录