Skip to content

iscsi fixes and cleanups

Mike Christie linux-scsi 6 versions – Applied

Status from this message: Applied to 5.12/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 1 replyApplied
  2. v59 patches 3 repliesSuperseded
  3. v3 posting 2/26 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 RFC posting 1/222 patches0 repliesSuperseded
v23 patches2 repliesSuperseded
v13 patches2 repliesSuperseded

Changes in v6 from the cover letter

- Remove task->sc check that is no longer needed because the helper function we use does the check for us.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/9libiscsi: fix iscsi_prep_scsi_cmd_pdu error handlingdrivers/scsi/libiscsi.c+3 -80 replies
2/9libiscsi: drop taskqueuelockdrivers/scsi/libiscsi.c drivers/scsi/libiscsi_tcp.c include/scsi/libiscsi.h+172 -960 replies
3/9libiscsi: fix iscsi_task use after freedrivers/scsi/bnx2i/bnx2i_iscsi.c drivers/scsi/libiscsi.c+45 -280 replies
4/9libiscsi: fix iscsi host workq destructiondrivers/scsi/libiscsi.c+3 -20 replies
5/9libiscsi: add helper to calc max scsi cmds per sessiondrivers/scsi/libiscsi.c include/scsi/libiscsi.h+56 -320 replies
6/9iscsi_tcp: fix shost can_queue initializationdrivers/scsi/iscsi_tcp.c+7 -20 replies
7/9libiscsi: reset max/exp cmdsn during recoverydrivers/scsi/libiscsi.c+7 -00 replies
8/9qla4xxx: use iscsi_is_session_onlinedrivers/scsi/qla4xxx/ql4_os.c+1 -10 replies
9/9iscsi class: drop session lock in iscsi_session_chkreadydrivers/scsi/scsi_transport_iscsi.c+0 -30 replies

Reviews trailers per patch

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

PatchLee Duncan
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9
7/9R-b
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 v6 thread

Cover letter [PATCH 0/9 V6] iscsi fixes and cleanups

The following patches made over Martin's 5.12 branches contain fixes for a cmd lifetime bug, software iscsi can_queue setup, and a couple of the lock cleanup patches Lee has already ackd.

V6:
- Remove task->sc check that is no longer needed because the helper function we use does the check for us.

V5:
- Fix up KERN_ERR/INFO use when detecting invalid max_cmds values from the user.
- Set iscsi_tcp can queue to max value it can support not including mgmt cmds since the driver itself is not limited and that is a libiscsi layer limit.
- Added the iscsi session class lock cleanup from the lock cleanup patchset since it was reviewed already and this is now a patchset for the next feature window.

V4:
- Add patch:
[PATCH 4/7] libiscsi: fix iscsi host workq destruction
to fix an issue where the user might only call iscsi_host_alloc then iscsi_host_free and that was leaving the iscsi workqueue running.
- Add check for if a driver were to set can_queue to ISCSI_MGMT_CMDS_MAX or less.
V3:
- Add some patches for issues found while testing.
- session queue depth was stuck at 128
- cmd window could not be detected when session was relogged in.
- Patch "libiscsi: drop taskqueuelock" had a bug where we did not disable bhs and during xmit thread suspension leaked the current task. V2:
- Take back_lock when looping over running cmds in iscsi_eh_cmd_timed_out in case those complete while we are accessing them.