linux/drivers/scsi/hisi_sas
Xiang Chen 9960a24a1c scsi: hisi_sas: fix SAS_QUEUE_FULL problem while running IO
This patch fix SAS_QUEUE_FULL problem. The test situation is close port while
running IO.

In sas_eh_handle_sas_errors(), SCSI EH will free sas_task of the device if
lldd_I_T_nexus_reset() return TMF_RESP_FUNC_COMPLETE or -ENODEV.  But in our
SAS driver, we only free slots of the device when the return value is
TMF_RESP_FUNC_COMPLETE. So if the return value is -ENODEV, the slot resource
will not free any more.

As an solution, we should also free slots of the device in
lldd_I_T_nexus_reset() if the return value is -ENODEV.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-12-20 21:11:13 -05:00
..
hisi_sas.h scsi: hisi_sas: do link reset for some CHL_INT2 ints 2017-12-14 21:25:03 -05:00
hisi_sas_main.c scsi: hisi_sas: fix SAS_QUEUE_FULL problem while running IO 2017-12-20 21:11:13 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: use an general way to delay PHY work 2017-12-14 21:25:03 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: do link reset for some CHL_INT2 ints 2017-12-14 21:25:03 -05:00
hisi_sas_v3_hw.c scsi: hisi_sas: do link reset for some CHL_INT2 ints 2017-12-14 21:25:03 -05:00
Kconfig scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00