Skip to content

Limit overall SCSI EH runtime

Hannes Reinecke linux-scsi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 4 repliesIn review
  2. v27 patches 24 repliesSuperseded
  3. v17 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Escalate to LUN reset if abort fails

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dpt_i2o: Remove DPTI_STATE_IOCTLdrivers/scsi/dpt_i2o.c drivers/scsi/dpti.h+12 -190 replies
2/8dpt_i2o: return SCSI_MLQUEUE_HOST_BUSY when in resetdrivers/scsi/dpt_i2o.c+2 -50 replies
3/8advansys: Remove 'last_reset' referencesdrivers/scsi/advansys.c+4 -40 replies
4/8tmscsim: Move 'last_reset' into host structuredrivers/scsi/tmscsim.c drivers/scsi/tmscsim.h+8 -70 replies
5/8dc395: Move 'last_reset' into internal host structuredrivers/scsi/dc395x.c+13 -110 replies
6/8scsi: remove check for 'resetting'drivers/scsi/scsi.c+0 -280 replies
7/8scsi: Add 'eh_deadline' to limit SCSI EH runtimedrivers/scsi/hosts.c drivers/scsi/scsi_error.c drivers/scsi/scsi_sysfs.c +1 more+170 -83 replies
8/8scsi_error: Escalate to LUN reset if abort failsdrivers/scsi/scsi_error.c+9 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/8] Limit overall SCSI EH runtime

This patchset implements a new 'eh_deadline' attribute to the SCSI host. It will limit the overall SCSI EH runtime by a given timeout. If the timeout is reached all intermediate EH steps will be skipped and host reset will be scheduled immediately.

For this patch I've re-used the existing 'last_reset' field of the SCSI host to store the initial time SCSI EH started. Also the field 'resetting' has been removed as it never has been used as intended.

As 'last_reset' might be in use by transport-specific EH implementation I've disallowed eh_deadline setting there.

Changes from v2:
- Escalate to LUN reset if abort fails

Changes from the initial version:
- Add list_splice_init() calls to avoid stale commands
- Rename function to scsi_host_eh_past_deadline

Hannes Reinecke (8):
dpt_i2o: Remove DPTI_STATE_IOCTL
dpt_i2o: return SCSI_MLQUEUE_HOST_BUSY when in reset
advansys: Remove 'last_reset' references
tmscsim: Move 'last_reset' into host structure
dc395: Move 'last_reset' into internal host structure
scsi: remove check for 'resetting'
scsi: Add 'eh_deadline' to limit SCSI EH runtime
scsi_error: Escalate to LUN reset if abort fails

 drivers/scsi/advansys.c   |   8 +--
 drivers/scsi/dc395x.c     |  24 ++++----
 drivers/scsi/dpt_i2o.c    |  35 +++++------
 drivers/scsi/dpti.h       |   1 -
 drivers/scsi/hosts.c      |   7 +++
 drivers/scsi/scsi.c       |  28 ---------
 drivers/scsi/scsi_error.c | 146 +++++++++++++++++++++++++++++++++++++++++-----
 drivers/scsi/scsi_sysfs.c |  37 ++++++++++++
 drivers/scsi/tmscsim.c    |  14 ++---
 drivers/scsi/tmscsim.h    |   1 +
 include/scsi/scsi_host.h  |   4 +-
 11 files changed, 217 insertions(+), 88 deletions(-)
Signature · 1 line
1.8.1.4