ata: fix deferred QC handling for port multipliers
Status from this message: Applied to libata/linux.git (for-7.1-fixes), thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 11 repliesApplied
- v44 patches 7 repliesSuperseded
- v32 patches 6 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 1 reply | Superseded | |
| v1 | 3 patches | 9 replies | Superseded |
Changes in v5 from the cover letter
-Fix ATA_DEFER_LINK_EXCL to use the correct goto label. While refactoring,
I accidentally used the wrong label goto defer_qc instead of goto free_qc, which of course broke PMP CBS in v4.
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ata: libata-scsi: improve readability of ata_scsi_qc_issue()drivers/ | +21 | 1 reply | |
| 2/4 | ata: libata-scsi: do not use the deferred QC feature for ATA_DEFER_PORTdrivers/ | +3 | 1 reply | |
| 3/4 | ata: libata-scsi: do not use the deferred QC feature on PMPs with CBSdrivers/ drivers/ drivers/ +1 more | +26 | 1 reply | |
| 4/4 | ata: libata-scsi: do not needlessly defer commands when using PMP with FBSdrivers/ drivers/ drivers/ +2 more | +42 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Damien Le Moal | Tommy Kelly |
|---|---|---|
| Series | R-b | T-b |
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/4] ata: fix deferred QC handling for port multipliers
Hello all,
Tommy Kelly reported a regression with PMP that use CBS:
https://lore.kernel.org/linux-ide/[email protected]/
It turns out that the ap->excl_link logic used for PMP that use CBS is incompatible with the deferred qc issuing via a workqueue. This is fixed in patch 3/4.
While looking at the code, it turns out that the deferred qc issuing via workqueue is misdesigned. It assumed that we can't mix NCQ and non-NCQ commands on the same port. The limitation is that you can not mix NCQ and non-NCQ commands on the same drive. However, with a PMP with FBS, you can issue (mixed NCQ and non-NCQ commands) to the different drives. Thus, move the saved deferred QC from struct ata_port to struct ata_link. This is fixed in patch 4/4.
Changes since v4:
-Fix ATA_DEFER_LINK_EXCL to use the correct goto label. While refactoring,
I accidentally used the wrong label goto defer_qc instead of goto free_qc, which of course broke PMP CBS in v4.
Niklas Cassel (4):
ata: libata-scsi: improve readability of ata_scsi_qc_issue()
ata: libata-scsi: do not use the deferred QC feature for
ATA_DEFER_PORT
ata: libata-scsi: do not use the deferred QC feature on PMPs with CBS
ata: libata-scsi: do not needlessly defer commands when using PMP with
FBS
drivers/ata/libata-core.c | 9 ++-- drivers/ata/libata-eh.c | 8 ++-- drivers/ata/libata-pmp.c | 18 +++++++- drivers/ata/libata-scsi.c | 89 +++++++++++++++++++++++---------------- drivers/ata/sata_sil24.c | 6 ++- include/linux/libata.h | 7 +-- 6 files changed, 87 insertions(+), 50 deletions(-)
base-commit: 0926c1b731b73e7296e4ad4f7d055918e16ae6ab
Signature · 1 line
2.54.0