Skip to content

Cleanup struct Scsi_Host

Hannes Reinecke linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5scsi: remove 'resetting' field from struct Scsi_Hostdrivers/scsi/dpt_i2o.c drivers/scsi/scsi.c include/scsi/scsi_host.h+4 -440 replies
2/5tmscsim: Move 'last_reset' into host structuredrivers/scsi/tmscsim.c drivers/scsi/tmscsim.h+7 -60 replies
3/5dc395: Move 'last_reset' into internal host structuredrivers/scsi/dc395x.c+13 -110 replies
4/5advansys: Remove references to 'last_reset'drivers/scsi/advansys.c+4 -40 replies
5/5scsi: Remove 'last_reset' for struct Scsi_Hostinclude/scsi/scsi_host.h+1 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] Cleanup struct Scsi_Host

The 'Scsi_Host' structure has two fields 'resetting' and 'last_reset' which are basically unused. There are only
4 drivers referencing 'last_reset' (dpt_i2o, tmscsim, dc395, and advansys), and only dpt_i2o makes usage of both fields.
However, dpt_i2o does _not_ require a delay after reset,
so even there the usage is questionable.

So move the 'last_reset' field into the internal host structure where needed and remove both fields from struct Scsi_Host.

Hannes Reinecke (5):
scsi: remove 'resetting' field from struct Scsi_Host
tmscsim: Move 'last_reset' into host structure
dc395: Move 'last_reset' into internal host structure
advansys: Remove references to 'last_reset'
scsi: Remove 'last_reset' for struct Scsi_Host

 drivers/scsi/advansys.c  |  8 ++++----
 drivers/scsi/dc395x.c    | 24 +++++++++++++-----------
 drivers/scsi/dpt_i2o.c   | 22 +++-------------------
 drivers/scsi/scsi.c      | 25 +------------------------
 drivers/scsi/tmscsim.c   | 12 ++++++------
 drivers/scsi/tmscsim.h   |  1 +
 include/scsi/scsi_host.h |  4 +---
 7 files changed, 29 insertions(+), 67 deletions(-)
Signature · 1 line
1.7.12.4