Skip to content

RFC zfcp: decouple scsi_eh callbacks from scsi_cmnd

Steffen Maier linux-s390 linux-scsi 1 version Applied

Status from this message: Applied to 4.14/scsi-queue. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9zfcp: drop unsuitable scsi_cmnd usage from SCSI traces for scsi_eh / TMFdrivers/s390/scsi/zfcp_dbf.c drivers/s390/scsi/zfcp_dbf.h drivers/s390/scsi/zfcp_ext.h +1 more+71 -341 reply
2/9zfcp: decouple TMF response handler from scsi_cmnddrivers/s390/scsi/zfcp_fsf.c+46 -262 replies
3/9zfcp: split FCP_CMND IU setup between SCSI I/O and TMF againdrivers/s390/scsi/zfcp_fc.h drivers/s390/scsi/zfcp_fsf.c+16 -101 reply
4/9zfcp: decouple FSF request setup of TMF from scsi_cmnddrivers/s390/scsi/zfcp_fc.h drivers/s390/scsi/zfcp_fsf.c+21 -102 replies
5/9zfcp: decouple SCSI setup of TMF from scsi_cmnddrivers/s390/scsi/zfcp_ext.h drivers/s390/scsi/zfcp_fsf.c drivers/s390/scsi/zfcp_scsi.c+30 -171 reply
6/9scsi: fc: start decoupling fc_block_scsi_eh from scsi_cmnddrivers/scsi/scsi_transport_fc.c include/scsi/scsi_transport_fc.h+27 -52 replies
7/9zfcp: use fc_block_rport for TMFs and host reset to decouple from scsi_cmnddrivers/s390/scsi/zfcp_scsi.c+4 -21 reply
8/9zfcp: fix waiting for rport(s) unblock in eh_host_reset_handlerdrivers/s390/scsi/zfcp_scsi.c+19 -61 reply
9/9zfcp: decouple our scsi_eh callbacks from scsi_cmnddrivers/s390/scsi/zfcp_scsi.c+32 -81 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchHannes Reinecke
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/9] zfcp: decouple scsi_eh callbacks from scsi_cmnd

This is an early request for comments.
The patch set serves as a zfcp preparation step for Hannes' series "[PATCH 00/47] SCSI EH argument reshuffle part II"
http://www.spinics.net/lists/linux-scsi/msg111165.html
or
http://marc.info/?l=linux-scsi&m=150091945302995&w=2

The series is based on 18 preceding zfcp patches,
including some stable regression bugfixes for zfcp tracing. Hence it might not apply cleanly.
However, we plan to post the 18 preceding patches soon for integration and I would like to get those in first.

Please do not apply to any tree that will merge into upstream yet, as it's not ready for prime time.
It only builds (after each patch; sparse and checkpatch clean) but it has not seen any function testing yet.

There are still some open questions:
* Search victim scsi_device in target_reset_handler just to get a LUN? (Even if we do, zfcp_fsf_fcp_handler_common() should not print that LUN!)
http://www.spinics.net/lists/linux-scsi/msg111164.html
http://www.spinics.net/lists/linux-scsi/msg111166.html
* Exact rport blocking logic in host_reset_handler.
http://www.spinics.net/lists/linux-scsi/msg111165.html

Steffen Maier (9):
zfcp: drop unsuitable scsi_cmnd usage from SCSI traces for scsi_eh /
TMF
zfcp: decouple TMF response handler from scsi_cmnd
zfcp: split FCP_CMND IU setup between SCSI I/O and TMF again
zfcp: decouple FSF request setup of TMF from scsi_cmnd
zfcp: decouple SCSI setup of TMF from scsi_cmnd
scsi: fc: start decoupling fc_block_scsi_eh from scsi_cmnd
zfcp: use fc_block_rport for TMFs and host reset to decouple from
scsi_cmnd
zfcp: fix waiting for rport(s) unblock in eh_host_reset_handler
zfcp: decouple our scsi_eh callbacks from scsi_cmnd

 drivers/s390/scsi/zfcp_dbf.c     |  51 ++++++++++++-------
 drivers/s390/scsi/zfcp_dbf.h     |  26 +++++++---
 drivers/s390/scsi/zfcp_ext.h     |  12 +++--
 drivers/s390/scsi/zfcp_fc.h      |  24 ++++++---
 drivers/s390/scsi/zfcp_fsf.c     | 106 +++++++++++++++++++++++++--------------
 drivers/s390/scsi/zfcp_scsi.c    | 105 +++++++++++++++++++++++++++++---------
 drivers/scsi/scsi_transport_fc.c |  31 ++++++++++--
 include/scsi/scsi_transport_fc.h |   1 +
 8 files changed, 252 insertions(+), 104 deletions(-)
Signature · 1 line
2.11.2