public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv3 0/8] Limit overall SCSI EH runtime
@ 2013-10-23  8:51 Hannes Reinecke
  2013-10-23  8:51 ` [PATCH 1/8] dpt_i2o: Remove DPTI_STATE_IOCTL Hannes Reinecke
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Hannes Reinecke @ 2013-10-23  8:51 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, Ewan Milne, Ren Mingxin, Hannes Reinecke

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(-)

-- 
1.8.1.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-02-28  7:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23  8:51 [PATCHv3 0/8] Limit overall SCSI EH runtime Hannes Reinecke
2013-10-23  8:51 ` [PATCH 1/8] dpt_i2o: Remove DPTI_STATE_IOCTL Hannes Reinecke
2013-10-23  8:51 ` [PATCH 2/8] dpt_i2o: return SCSI_MLQUEUE_HOST_BUSY when in reset Hannes Reinecke
2013-10-23  8:51 ` [PATCH 3/8] advansys: Remove 'last_reset' references Hannes Reinecke
2013-10-23  8:51 ` [PATCH 4/8] tmscsim: Move 'last_reset' into host structure Hannes Reinecke
2013-10-23  8:51 ` [PATCH 5/8] dc395: Move 'last_reset' into internal " Hannes Reinecke
2013-10-23  8:51 ` [PATCH 6/8] scsi: remove check for 'resetting' Hannes Reinecke
2013-10-23  8:51 ` [PATCH 7/8] scsi: Add 'eh_deadline' to limit SCSI EH runtime Hannes Reinecke
2013-10-23  9:30   ` Ren Mingxin
2014-02-28  7:01   ` Ren Mingxin
2014-02-28  7:24     ` Hannes Reinecke
2013-10-23  8:51 ` [PATCH 8/8] scsi_error: Escalate to LUN reset if abort fails Hannes Reinecke
2013-10-23 13:53   ` Ewan Milne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox