[PATCH v3 0/2] fixup handling of timeouts with deferred QCs
Damien Le Moal <[email protected]> Mon, 13 Jul 2026 13:12:50 +0900
| Newsgroups | gmane.linux.scsi,gmane.linux.ide |
|---|---|
| Message-ID | <[email protected]> |
This patch series fixes libata and libsas to correctly handles deferred queued commands in case of a timeout error, to avoid excessive delays in waking up the scsi EH task. Igor, My apologies for the churn, but please retest ! Also, I added your Signed-off-by on patch 2 since half of it is yours. Martin, Once reviewed, I or you can take both patches ? Changes from v2: - Modified patch 1 to avoid the problem reported by Sashiko that requeued deferred QCs may be re-ssued immediately by the block layer, thus potentially keeping the device busy. The modification now relies on libata-EH to perform the requeue instead of immediately doing it from the eh_timed_out operation. - Modified patch 2 to use the new helper function defined in patch 1. Changes from v1: - Modified patch 1 to ignore timed out deferred QCs in ata_scsi_requeue_deferred_qc() to let ata_scsi_cmd_error_handler() correctly handle this case. Damien Le Moal (2): ata: libata-scsi: terminate deferred commands on time out scsi: libsas: terminate deferred commands on time out drivers/ata/libata-eh.c | 36 ++++++++++++++++++++++++++++- drivers/ata/libata-scsi.c | 22 ++++++++++++++++++ drivers/scsi/libsas/sas_scsi_host.c | 17 ++++++++++++++ include/linux/libata.h | 4 ++++ include/scsi/libsas.h | 2 ++ 5 files changed, 80 insertions(+), 1 deletion(-) -- 2.55.0