target: TMF and recovery fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 11 repliesIn review
v4 from the cover letter
- Fix
[PATCH v3 07/14] scsi: target: Fix multiple LUN_RESET handling so it doesn't add back the bug where resets can wait on each other and deadlock.
- Updated
[PATCH v3 06/14] scsi: target: iscsit: Fix TAS handling during conn so it handles the case where commands have passed the STOP checks and have not yet hit them.
- Added patch to handle another hang found while testnig where we wait on the free_compl but never drop a ref due to being in the wrong state. v3:
- Drop patch "iscsit: Fix isert disconnect handling during login"
- Add patch to drop cmd lock in completion callout
- Add patch to clean up recovery commands earlier when ERL2 is used
- Add patch to handle use-after-free in isert
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | scsi: target: Move sess cmd counter to new structdrivers/ drivers/ include/ +1 more | +107 | 0 replies | |
| 2/18 | scsi: target: Move cmd counter allocationdrivers/ drivers/ drivers/ +2 more | +42 | 0 replies | |
| 3/18 | scsi: target: Pass in cmd counter to use during cmd setupdrivers/ drivers/ drivers/ +2 more | +30 | 0 replies | |
| 4/18 | scsi: target: iscsit/isert: Alloc per conn cmd counterdrivers/ drivers/ drivers/ +2 more | +20 | 0 replies | |
| 5/18 | scsi: target: iscsit: stop/wait on cmds during conn closedrivers/ | +10 | 0 replies | |
| 6/18 | scsi: target: Drop t_state_lock use in compare_and_write_postdrivers/ | +0 | 0 replies | |
| 7/18 | scsi: target: Treat CMD_T_FABRIC_STOP like CMD_T_STOPdrivers/ drivers/ | +17 | 3 replies | |
| 8/18 | scsi: target: iscsit: Add helper to check when cmd has faileddrivers/ include/ | +6 | 0 replies | |
| 9/18 | scsi: target: iscsit: Cleanup isert commands at conn closuredrivers/ drivers/ | +32 | 0 replies | |
| 10/18 | IB/isert: Fix hang in target_wait_for_cmdsdrivers/ | +0 | 0 replies | |
| 11/18 | IB/isert: Fix use after free during conn cleanupdrivers/ | +1 | 1 reply | |
| 12/18 | scsi: target: iscsit: free cmds before session freedrivers/ | +3 | 0 replies | |
| 13/18 | scsi: target: Fix multiple LUN_RESET handlingdrivers/ drivers/ drivers/ +1 more | +74 | 7 replies | |
| 14/18 | scsi: target: Don't set CMD_T_FABRIC_STOP for aborted tasksdrivers/ | +6 | 0 replies | |
| 15/18 | scsi: target: iscsit: Fix TAS handling during conn cleanupdrivers/ | +29 | 0 replies | |
| 16/18 | scsi: target: drop tas arg from __transport_wait_for_tasksdrivers/ | +8 | 0 replies | |
| 17/18 | scsi: target: Remove sess_cmd_lockdrivers/ drivers/ include/ | +0 | 0 replies | |
| 18/18 | scsi: target: Move tag pr_debug to before we do a put on the cmddrivers/ | +3 | 0 replies |
Reviews trailers per patch
7 of 18 patches have a Reviewed-by or Acked-by.
| Patch | Maurizio Lombardi | Sagi Grimberg | Dmitry Bogdanov |
|---|---|---|---|
| 1/18 | R-b | ||
| 2/18 | |||
| 3/18 | |||
| 4/18 | |||
| 5/18 | R-b | ||
| 6/18 | |||
| 7/18 | |||
| 8/18 | R-b | ||
| 9/18 | |||
| 10/18 | R-b | ||
| 11/18 | R-b | R-b | |
| 12/18 | R-b | ||
| 13/18 | |||
| 14/18 | |||
| 15/18 | |||
| 16/18 | R-b | ||
| 17/18 | |||
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 00/18] target: TMF and recovery fixes
The following patches apply over Martin's 6.4 branches and Linus's tree. They fix a couple regressions/bugs in iscsit that occur when there are multiple sessions accessing the same se_device and TMRs are executing and a connection is closed. And they fix some bugs in isert for the single session case when there are TMRs executing and the connection is closed. It also includes Dimitry's fix for cmd cleanup when ERL2 is used.
v4:
- Fix
[PATCH v3 07/14] scsi: target: Fix multiple LUN_RESET handling so it doesn't add back the bug where resets can wait on each other and deadlock.
- Updated
[PATCH v3 06/14] scsi: target: iscsit: Fix TAS handling during conn so it handles the case where commands have passed the STOP checks and have not yet hit them.
- Added patch to handle another hang found while testnig where we wait on the free_compl but never drop a ref due to being in the wrong state. v3:
- Drop patch "iscsit: Fix isert disconnect handling during login"
- Add patch to drop cmd lock in completion callout
- Add patch to clean up recovery commands earlier when ERL2 is used
- Add patch to handle use-after-free in isert
v2:
- Fix wait/stop use during login failures
- Add patches to support isert