linux/drivers/scsi/hisi_sas
Yihang Li 32be33747d scsi: hisi_sas: Block requests before a debugfs snapshot
When FIO and debugfs snapshot occur concurrently, some SATA I/Os are failed
to return to the upper layer due to the setting of HISI_SAS_REJECT_CMD_BIT.
Then the SCSI layer invokes the error processing thread. However,
sas_ata_hard_reset() in EH also fails to be reset due to the setting of
HISI_SAS_REJECT_CMD_BIT. As a result, the device is disabled.

Calling scsi_block_requests() in the front of a debugfs snapshot and wait
command complete before setting HISI_SAS_REJECT_CMD_BIT to avoid SATA I/O
failures.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1689045300-44318-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-07-23 15:18:25 -04:00
..
hisi_sas.h scsi: hisi_sas: Convert to platform remove callback returning void 2023-06-07 21:20:21 -04:00
hisi_sas_main.c scsi: hisi_sas: Convert to platform remove callback returning void 2023-06-07 21:20:21 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Convert to platform remove callback returning void 2023-06-07 21:20:21 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Fix normally completed I/O analysed as failed 2023-07-23 15:18:25 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: Block requests before a debugfs snapshot 2023-07-23 15:18:25 -04:00
Kconfig scsi: hisi_sas: Enable debugfs support by default 2021-01-26 23:02:11 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00