Skip to content

scsi: EH rework prep patches, part 2

Hannes Reinecke linux-scsi 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest16 patches 10 repliesIn review
  2. v716 patches 3 repliesSuperseded
  3. v617 patches 15 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v518 patches8 repliesApplied

Changes to v7 from the cover letter

- Include reviews from Bart
- Change return value to DID_TRANSPORT_FAILFAST

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16zfcp: do not wait for rports to become unblocked after host resetdrivers/s390/scsi/zfcp_scsi.c+1 -50 replies
2/16bfa: Do not use scsi command to signal TMF statusdrivers/scsi/bfa/bfad_im.c drivers/scsi/bfa/bfad_im.h+63 -510 replies
3/16aha152x: look for stuck command when resetting devicedrivers/scsi/aha152x.c+15 -110 replies
4/16a1000u2w: do not rely on the command for inia100_device_reset()drivers/scsi/a100u2w.c+12 -340 replies
5/16fas216: Rework device reset to not rely on SCSI command pointerdrivers/scsi/arm/fas216.c+19 -200 replies
6/16xen-scsifront: add scsi device as argument to scsifront_do_request()drivers/scsi/xen-scsifront.c+20 -110 replies
7/16xen-scsifront: rework scsifront_action_handler()drivers/scsi/xen-scsifront.c+12 -70 replies
8/16libiscsi: use cls_session as argument for target and session resetdrivers/scsi/be2iscsi/be_main.c drivers/scsi/libiscsi.c include/scsi/libiscsi.h+21 -160 replies
9/16scsi_transport_iscsi: use session as argument for iscsi_block_scsi_eh()drivers/scsi/qla4xxx/ql4_os.c drivers/scsi/scsi_transport_iscsi.c include/scsi/scsi_transport_iscsi.h+24 -180 replies
10/16snic: reserve tag for TMFdrivers/scsi/snic/snic.h drivers/scsi/snic/snic_main.c drivers/scsi/snic/snic_scsi.c+21 -680 replies
11/16snic: allocate device reset commanddrivers/scsi/snic/snic_scsi.c+40 -320 replies
12/16snic: Use scsi_host_busy_iter() to traverse commandsdrivers/scsi/snic/snic_scsi.c+84 -930 replies
13/16fnic: allocate device reset command on the flydrivers/scsi/fnic/fnic.h drivers/scsi/fnic/fnic_scsi.c drivers/scsi/snic/snic_scsi.c+55 -6410 replies
14/16fnic: use fc_block_rport() correctlydrivers/scsi/fnic/fnic_scsi.c+4 -30 replies
15/16csiostor: use separate TMF commanddrivers/scsi/csiostor/csio_scsi.c+48 -240 replies
16/16dc395x: Remove 'scmd' parameter from doing_srb_done()drivers/scsi/dc395x.c+6 -80 replies

Reviews trailers per patch

15 of 16 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigMike ChristieBenjamin BlockJohannes Thumshirn
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b R-b
13/16
14/16R-b R-b
15/16R-b
16/16R-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 4 reviewers.

Read the v8 thread

Cover letter [PATCHv8 00/16] scsi: EH rework prep patches, part 2

Hi all,

(taking up an old thread:)
here's the second batch of patches for my EH rework.
It modifies the reset callbacks for SCSI drivers
such that the final conversion to drop the 'struct scsi_cmnd' argument and use the entity in question (host, bus, target, device) as the argument to the SCSI EH callbacks becomes possible. The second part covers drivers which require a bit more love. In particular the fnic, snic, and csiostor drivers require a tag to send TMFs. So to handle that I've set aside a tag and used that directly (for snic host reset), or call scsi_alloc_request() with the NOWAIT flag. That will return a scsi command with a valid tag, which then can be used to send the reset. It might fail (eg when the tagset is full), but in these cases it might be better to fall back to host_reset anyway.

As usual, comments and reviews are welcome.

Changes to v7:
- Include reviews from Bart
- Change return value to DID_TRANSPORT_FAILFAST

Changes to v6:
- Include reviews from Christoph
- Add missing kerneldoc updates

Changes to v5:
- Modified zfcp host reset to return FAST_IO_FAIL
- Rebased to 6.7/staging
- Add fix for missing scsi_device_put() in pmcraid
- Modify doing_srb_done() in dc395x to not use a scsi command

Changes to v4:
- rework snic to use a dedicated tag for host reset
- rework snic to allocate TMFs on the fly
- rework fnic to allocate TMFs on the fly
- rework csiostor to allocat TMFs on the fly
- drop fc_block_rport() from zfcp host_reset
- Rebase to latest linus tree

Changes to v3:
- Move fnic and snic patches to the next patchset
- Include reviews from Ewan Milne

Changes to v2:
- Include reviews from John Garry
- move mpi3mr, zfcp, sym53c8xx_2, and qla1280 patches to the next patchset

Changes to the initial version:
- Include reviews from Christoph
- Fixup build robot issues

Hannes Reinecke (16):
zfcp: do not wait for rports to become unblocked after host reset
bfa: Do not use scsi command to signal TMF status
aha152x: look for stuck command when resetting device
a1000u2w: do not rely on the command for inia100_device_reset()
fas216: Rework device reset to not rely on SCSI command pointer
xen-scsifront: add scsi device as argument to scsifront_do_request()
xen-scsifront: rework scsifront_action_handler()
libiscsi: use cls_session as argument for target and session reset
scsi_transport_iscsi: use session as argument for
iscsi_block_scsi_eh()
snic: reserve tag for TMF
snic: allocate device reset command
snic: Use scsi_host_busy_iter() to traverse commands
fnic: allocate device reset command on the fly
fnic: use fc_block_rport() correctly
csiostor: use separate TMF command
dc395x: Remove 'scmd' parameter from doing_srb_done()

 drivers/s390/scsi/zfcp_scsi.c       |   6 +-
 drivers/scsi/a100u2w.c              |  46 +---
 drivers/scsi/aha152x.c              |  26 ++-
 drivers/scsi/arm/fas216.c           |  39 ++--
 drivers/scsi/be2iscsi/be_main.c     |  10 +-
 drivers/scsi/bfa/bfad_im.c          | 112 +++++-----
 drivers/scsi/bfa/bfad_im.h          |   2 +
 drivers/scsi/csiostor/csio_scsi.c   |  72 ++++--
 drivers/scsi/dc395x.c               |  14 +-
 drivers/scsi/fnic/fnic.h            |   1 -
 drivers/scsi/fnic/fnic_scsi.c       | 120 +++++-----
 drivers/scsi/libiscsi.c             |  25 +--
 drivers/scsi/qla4xxx/ql4_os.c       |  34 +--
 drivers/scsi/scsi_transport_iscsi.c |   6 +-
 drivers/scsi/snic/snic.h            |   2 +-
 drivers/scsi/snic/snic_main.c       |   5 +-
 drivers/scsi/snic/snic_scsi.c       | 328 ++++++++++++----------------
 drivers/scsi/xen-scsifront.c        |  50 +++--
 include/scsi/libiscsi.h             |   2 +-
 include/scsi/scsi_transport_iscsi.h |   2 +-
 20 files changed, 441 insertions(+), 461 deletions(-)
Signature · 1 line
2.35.3