Skip to content

libiscsi and qedi TMF fixes

Mike Christie linux-scsi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest17 patches 4 repliesIn review
  2. v317 patches 10 repliesSuperseded
  3. v113 patches 1 replySuperseded

Changes in v4 from the cover letter

- Rm unused rtid variable in qedi
- Added a default case in TMF switch just in case people do not like not having it.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17scsi: iscsi: add task completion helperinclude/scsi/libiscsi.h+7 -00 replies
2/17scsi: iscsi: sync libiscsi and driver reset cleanupdrivers/scsi/libiscsi.c+74 -321 reply
3/17scsi: iscsi: stop queueing during ep_disconnectdrivers/infiniband/ulp/iser/iscsi_iser.c drivers/scsi/be2iscsi/be_main.c drivers/scsi/bnx2i/bnx2i_iscsi.c +8 more+73 -90 replies
4/17scsi: iscsi: drop suspend calls from ep_disconnectdrivers/scsi/be2iscsi/be_iscsi.c drivers/scsi/bnx2i/bnx2i_iscsi.c drivers/scsi/cxgbi/libcxgbi.c +1 more+5 -160 replies
5/17scsi: iscsi: wait on cmds before freeing conndrivers/scsi/libiscsi.c+28 -01 reply
6/17scsi: iscsi: fix use conn use after freedrivers/scsi/libiscsi.c include/scsi/libiscsi.h+64 -700 replies
7/17scsi: iscsi: move pool freeingdrivers/scsi/libiscsi.c+1 -20 replies
8/17scsi: qedi: fix null ref during abort handlingdrivers/scsi/qedi/qedi_fw.c+1 -10 replies
9/17scsi: qedi: fix race during abort timeoutsdrivers/scsi/qedi/qedi_fw.c drivers/scsi/qedi/qedi_iscsi.c+17 -180 replies
10/17scsi: qedi: fix use after free during abort cleanupdrivers/scsi/qedi/qedi_fw.c drivers/scsi/qedi/qedi_iscsi.h+61 -500 replies
11/17scsi: qedi: fix TMF tid allocationdrivers/scsi/qedi/qedi_fw.c drivers/scsi/qedi/qedi_gbl.h drivers/scsi/qedi/qedi_iscsi.c+25 -560 replies
12/17scsi: qedi: use GFP_NOIO for tmf allocationdrivers/scsi/qedi/qedi_fw.c+1 -10 replies
13/17scsi: qedi: fix TMF session block/unblock usedrivers/scsi/qedi/qedi_fw.c+1 -60 replies
14/17scsi: qedi: fix cleanup session block/unblock usedrivers/scsi/qedi/qedi.h drivers/scsi/qedi/qedi_iscsi.c+16 -20 replies
15/17scsi: qedi: pass send_iscsi_tmf task to abortdrivers/scsi/qedi/qedi_fw.c+5 -120 replies
16/17scsi: qedi: complete TMF works before disconnectdrivers/scsi/qedi/qedi_fw.c drivers/scsi/qedi/qedi_iscsi.c drivers/scsi/qedi/qedi_iscsi.h+47 -260 replies
17/17scsi: qedi: always wake up if cmd_cleanup_req is setdrivers/scsi/qedi/qedi_fw.c+4 -270 replies

Reviews trailers per patch

All 17 patches have a Reviewed-by or Acked-by.

PatchLee DuncanManish Rangankar
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

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

Read the v4 thread

Cover letter [PATCH v4 00/17] libiscsi and qedi TMF fixes

The following patches were made over Linus's tree. They apply to any of Martin's branches that has this fix: 73603e995a37 ("scsi: iscsi: Fix iSCSI cls conn state") that has conflicts with a patch in this set.

The patches fix TMF bugs in the qedi driver, libiscsi EH issues that are common to all offload drivers like qedi and some fixes for cases where userspace is not doing an unbind target nl cmd and we are doing TMFs during session termination.

V4:
- Rm unused rtid variable in qedi
- Added a default case in TMF switch just in case people do not like not having it.
V3:
- Fix u16 initialization and test.
- Fix bool return value use.
- Added patches for cases where EH is running then userspace terminates the connection without removing the target first.
- Made patch that stops IO during ep_disconnect more driver friendly by handling if the ep is bound or not.

V2:
- Dropped patch that reverted the in-kernel conn failure handling. I posted a full patchset to fix that separately.
- Modfied the tmf vs cmd queueing patch. The RFC patch only supported qedi and offload drivers. iscsi_tcp/cxgbgi do not need it.
- Added patch for another issue found where cmds can still be queued to the driver while it does ep_disconnect.