Skip to content

SCSI EH cleanup

Hannes Reinecke linux-scsi 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest8 patches 9 repliesIn review
  2. v58 patches 7 repliesSuperseded
  3. v48 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches22 repliesSuperseded
v25 patches13 repliesSuperseded
v15 patches4 repliesSuperseded

Changes to v1 from the cover letter

- Include reviews from Christoph

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8scsi_error: count medium access timeout only once per EH rundrivers/scsi/scsi_error.c drivers/scsi/sd.c drivers/scsi/sd.h +1 more+46 -10 replies
2/8sd: Return SUCCESS in sd_eh_action() after device offlinedrivers/scsi/sd.c+1 -11 reply
3/8scsi: always send command abortsdrivers/scsi/scsi_error.c+0 -121 reply
4/8libsas: allow async abortsdrivers/scsi/libsas/sas_scsi_host.c+0 -30 replies
5/8scsi: make eh_eflags persistentDocumentation/scsi/scsi_eh.txt drivers/scsi/libsas/sas_scsi_host.c drivers/scsi/scsi_error.c +1 more+10 -111 reply
6/8scsi: make scsi_eh_scmd_add() always succeeddrivers/scsi/scsi_error.c drivers/scsi/scsi_lib.c drivers/scsi/scsi_priv.h+16 -310 replies
7/8scsi: make asynchronous aborts mandatoryDocumentation/scsi/scsi_eh.txt drivers/scsi/scsi_error.c drivers/scsi/scsi_lib.c +2 more+15 -940 replies
8/8scsi: inline command abortsdrivers/scsi/scsi.c drivers/scsi/scsi_error.c drivers/scsi/scsi_lib.c +2 more+41 -484 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJohannes ThumshirnHannes ReineckeBenjamin BlockBart Van Assche
1/8R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b R-b R-b
6/8R-b R-b R-b
7/8R-b R-b R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v6 thread

Cover letter [PATCHv6 0/8] SCSI EH cleanup

Hi all,

this is a resend of a small patchset for cleaning up SCSI EH. Primary goal is to make asynchronous aborts mandatory; there hasn't been a single report so far where asynchronous abort won't work, so the 'no_async_abort' flag has never been used and will be removed with this patchset.
Additionally there's a cleanup to detect retries of failed commands and to inline commands aborts.
I've also included the patch to correctly reset the media access timeout counter to avoid it being triggered inadvertedly by several commands timing out for the same device.

As usual, comments and reviews are welcome.

Changes to v1:
- Include reviews from Christoph

Changes to v2:
- Include reviews from Bart
- Add medium access timeout patch

Changes to v3:
- Add patch to inline command abort as per suggestion from Christoph
- Drop patch to not escalate failed EH commands

Changes to v4:
- Split off sdrv->eh_action into two functions

Changes to v5:
- Simplify 'scsi: inline command aborts'
- Add Reviewed-by tags

Christoph Hellwig (1):
libsas: allow async aborts

Hannes Reinecke (7):
scsi_error: count medium access timeout only once per EH run
sd: Return SUCCESS in sd_eh_action() after device offline
scsi: always send command aborts
scsi: make eh_eflags persistent
scsi: make scsi_eh_scmd_add() always succeed
scsi: make asynchronous aborts mandatory
scsi: inline command aborts

 Documentation/scsi/scsi_eh.txt      |  30 ++---
 drivers/scsi/libsas/sas_scsi_host.c |   5 -
 drivers/scsi/scsi.c                 |   2 -
 drivers/scsi/scsi_error.c           | 213 ++++++++++++------------------------
 drivers/scsi/scsi_lib.c             |   6 +-
 drivers/scsi/scsi_priv.h            |   4 +-
 drivers/scsi/sd.c                   |  29 ++++-
 drivers/scsi/sd.h                   |   1 +
 include/scsi/scsi_cmnd.h            |   1 -
 include/scsi/scsi_driver.h          |   1 +
 include/scsi/scsi_eh.h              |   1 +
 include/scsi/scsi_host.h            |   5 -
 12 files changed, 113 insertions(+), 185 deletions(-)
Signature · 1 line
1.8.5.6