Skip to content

SCSI EH argument reshuffle part I

Hannes Reinecke linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 41 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28scsi: fix comment in scsi_device_set_state()drivers/scsi/scsi_lib.c+1 -12 replies
2/28mptfc: Do not call fc_block_scsi_eh() on host resetdrivers/message/fusion/mptfc.c+1 -91 reply
3/28ibmvfc: Do not call fc_block_scsi_eh() on host resetdrivers/scsi/ibmvscsi/ibmvfc.c+1 -51 reply
4/28fc_fcp: do not call fc_block_scsi_eh() from host resetdrivers/scsi/libfc/fc_fcp.c+0 -21 reply
5/28fnic: do not call host reset from command abortdrivers/scsi/fnic/fnic_scsi.c+0 -41 reply
6/28uas: move eh_bus_reset_handler to eh_device_reset_handlerdrivers/usb/storage/uas.c+2 -21 reply
7/28libsas: move bus_reset_handler() to target_reset_handler()drivers/scsi/aic94xx/aic94xx_init.c drivers/scsi/hisi_sas/hisi_sas_main.c drivers/scsi/isci/init.c +4 more+12 -121 reply
8/28bfa: move bus reset to target resetdrivers/scsi/bfa/bfad_im.c+15 -221 reply
9/28hptiop: Simplify reset handlingdrivers/scsi/hptiop.c+4 -71 reply
10/28fdomain: move bus reset to host resetdrivers/scsi/fdomain.c drivers/scsi/fdomain.h drivers/scsi/pcmcia/fdomain_stub.c+5 -52 replies
11/28scsi: drop bus reset for wd33c93-compatible boardsdrivers/scsi/a2091.c drivers/scsi/a3000.c drivers/scsi/gvp11.c +3 more+2 -832 replies
12/28rtsx: drop bus reset functiondrivers/staging/rts5208/rtsx.c+0 -111 reply
13/28qlogicpti: move bus reset to host resetdrivers/scsi/qlogicpti.c+2 -31 reply
14/28acornscsi: move bus reset to host resetdrivers/scsi/arm/acornscsi.c+6 -51 reply
15/28NCR5380: Move bus reset to host resetdrivers/scsi/NCR5380.c drivers/scsi/arm/cumana_1.c drivers/scsi/arm/oak.c +5 more+14 -142 replies
16/28qlogicfas: move bus_reset to host_resetdrivers/scsi/pcmcia/qlogic_stub.c drivers/scsi/qlogicfas.c drivers/scsi/qlogicfas408.c +1 more+7 -71 reply
17/28imm: drop duplicate bus_reset handlerdrivers/scsi/imm.c+0 -12 replies
18/28ppa: drop duplicate bus_reset handlerdrivers/scsi/ppa.c+0 -12 replies
19/28qedf: drop bus reset handlerdrivers/scsi/qedf/qedf_main.c+0 -114 replies
20/28nsp32: drop bus resetdrivers/scsi/nsp32.c+1 -212 replies
21/28aha152x: drop bus resetdrivers/scsi/aha152x.c+0 -102 replies
22/2853c700: move bus reset to host resetdrivers/scsi/53c700.c+3 -191 reply
23/28bnx2fc: remove obsolete bnx2fc_eh_host_reset() definitiondrivers/scsi/bnx2fc/bnx2fc.h+0 -11 reply
24/28megaraid_mbox: drop duplicate bus reset and device reset functiondrivers/scsi/megaraid/megaraid_mbox.c+0 -22 replies
25/28lpfc: drop lpfc_no_handler and lpfc_bus_reset_handler()drivers/scsi/lpfc/lpfc_scsi.c+0 -990 replies
26/28visorhba: sanitze private device data allocationdrivers/staging/unisys/visorhba/visorhba_main.c+53 -702 replies
27/28eata: remove 'arg_done' from eata2x_eh_host_reset()drivers/scsi/eata.c+1 -82 replies
28/28NCR5380: Clear all unissued commands on host resetdrivers/scsi/NCR5380.c+5 -21 reply

Reviews trailers per patch

26 of 28 patches have a Reviewed-by or Acked-by.

PatchBart van AsscheChristoph HellwigFinn ThainJohannes ThumshirnChad DupuisDavid Kershner
1/28R-b R-b R-b
2/28R-b R-b
3/28R-b R-b
4/28R-b A-b
5/28R-b R-b
6/28R-b R-b
7/28R-b R-b
8/28R-b R-b
9/28R-b R-b
10/28R-b R-b
11/28R-b R-b
12/28R-b R-b
13/28R-b R-b
14/28R-b R-b
15/28R-b A-b R-b
16/28R-b R-b
17/28R-b R-b
18/28R-b R-b
19/28T-b
20/28R-b
21/28R-b
22/28R-b
23/28R-b R-b
24/28R-b R-b
25/28
26/28A-b R-b
27/28R-b R-b
28/28R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/28] SCSI EH argument reshuffle part I

Hi all,
finally here's the patchset to revamp the SCSI EH callback arguments which I promised to do (some years ago ...).

The overall idea is to match the scope of the eh_XXX callbacks with the appropriate argument, eg eh_device_reset_handler() should have a scsi device as argument etc.
Relying on the scsi command has the problem that
a) we're holding a reference on that command for the entire lifetime of the error handling and
b) it leads to some 'interesting' driver implementations; some higher-level EH callback implementations go through the list of outstanding commands and try to abort this particular command only; makes one wonder what'll happen to the other commands ...

However, this patchset has the nice side-effect that we don't need to allocate an out-of-order scsi command in scsi_ioctl_reset(), but can call the function directly.

As per request from hch the patchset has been split in two parts; this is the first part which just does a general EH function cleanup without introducing any functional differences.

As usual, comments and reviews are welcome.

Hannes Reinecke (28):
scsi: fix comment in scsi_device_set_state()
mptfc: Do not call fc_block_scsi_eh() on host reset
ibmvfc: Do not call fc_block_scsi_eh() on host reset
fc_fcp: do not call fc_block_scsi_eh() from host reset
fnic: do not call host reset from command abort
uas: move eh_bus_reset_handler to eh_device_reset_handler
libsas: move bus_reset_handler() to target_reset_handler()
bfa: move bus reset to target reset
hptiop: Simplify reset handling
fdomain: move bus reset to host reset
scsi: drop bus reset for wd33c93-compatible boards
rtsx: drop bus reset function
qlogicpti: move bus reset to host reset
acornscsi: move bus reset to host reset
NCR5380: Move bus reset to host reset
qlogicfas: move bus_reset to host_reset
imm: drop duplicate bus_reset handler
ppa: drop duplicate bus_reset handler
qedf: drop bus reset handler
nsp32: drop bus reset
aha152x: drop bus reset
53c700: move bus reset to host reset
bnx2fc: remove obsolete bnx2fc_eh_host_reset() definition
megaraid_mbox: drop duplicate bus reset and device reset function
lpfc: drop lpfc_no_handler and lpfc_bus_reset_handler()
visorhba: sanitze private device data allocation
eata: remove 'arg_done' from eata2x_eh_host_reset()
NCR5380: Clear all unissued commands on host reset

 drivers/message/fusion/mptfc.c                  |  10 +-
 drivers/scsi/53c700.c                           |  22 +----
 drivers/scsi/NCR5380.c                          |  11 ++-
 drivers/scsi/a2091.c                            |  17 ----
 drivers/scsi/a3000.c                            |  17 ----
 drivers/scsi/aha152x.c                          |  10 --
 drivers/scsi/aic94xx/aic94xx_init.c             |   2 +-
 drivers/scsi/arm/acornscsi.c                    |  11 ++-
 drivers/scsi/arm/cumana_1.c                     |   2 +-
 drivers/scsi/arm/oak.c                          |   2 +-
 drivers/scsi/atari_scsi.c                       |   6 +-
 drivers/scsi/bfa/bfad_im.c                      |  37 +++----
 drivers/scsi/bnx2fc/bnx2fc.h                    |   1 -
 drivers/scsi/dmx3191d.c                         |   2 +-
 drivers/scsi/eata.c                             |   9 +-
 drivers/scsi/fdomain.c                          |   6 +-
 drivers/scsi/fdomain.h                          |   2 +-
 drivers/scsi/fnic/fnic_scsi.c                   |   4 -
 drivers/scsi/g_NCR5380.c                        |   4 +-
 drivers/scsi/gvp11.c                            |  18 ----
 drivers/scsi/hisi_sas/hisi_sas_main.c           |   2 +-
 drivers/scsi/hptiop.c                           |  11 +--
 drivers/scsi/ibmvscsi/ibmvfc.c                  |   6 +-
 drivers/scsi/imm.c                              |   1 -
 drivers/scsi/isci/init.c                        |   2 +-
 drivers/scsi/libfc/fc_fcp.c                     |   2 -
 drivers/scsi/libsas/sas_scsi_host.c             |  12 +--
 drivers/scsi/lpfc/lpfc_scsi.c                   |  99 -------------------
 drivers/scsi/mac_scsi.c                         |   4 +-
 drivers/scsi/megaraid/megaraid_mbox.c           |   2 -
 drivers/scsi/mvme147.c                          |  16 ---
 drivers/scsi/mvsas/mv_init.c                    |   2 +-
 drivers/scsi/nsp32.c                            |  22 +----
 drivers/scsi/pcmcia/fdomain_stub.c              |   2 +-
 drivers/scsi/pcmcia/qlogic_stub.c               |   4 +-
 drivers/scsi/pm8001/pm8001_init.c               |   2 +-
 drivers/scsi/ppa.c                              |   1 -
 drivers/scsi/qedf/qedf_main.c                   |  11 ---
 drivers/scsi/qlogicfas.c                        |   2 +-
 drivers/scsi/qlogicfas408.c                     |   6 +-
 drivers/scsi/qlogicfas408.h                     |   2 +-
 drivers/scsi/qlogicpti.c                        |   5 +-
 drivers/scsi/scsi_lib.c                         |   2 +-
 drivers/scsi/sgiwd93.c                          |  15 ---
 drivers/scsi/sun3_scsi.c                        |   4 +-
 drivers/scsi/wd33c93.c                          |   2 +
 drivers/staging/rts5208/rtsx.c                  |  11 ---
 drivers/staging/unisys/visorhba/visorhba_main.c | 123 ++++++++++--------------
 drivers/usb/storage/uas.c                       |   4 +-
 include/scsi/libsas.h                           |   2 +-
 50 files changed, 135 insertions(+), 437 deletions(-)
Signature · 1 line
1.8.5.6