iscsi: Speed up failover with lots of devices.
Status from this message: Applied to 5.18/scsi-staging, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | scsi: iscsi: Fix recovery and ublocking race.drivers/ | +2 | 2 replies | |
| 2/6 | scsi: iscsi: Speed up session unblocking and removal.drivers/ | +5 | 2 replies | |
| 3/6 | scsi: iscsi: Remove iscsi_scan_finished.drivers/ include/ | +4 | 3 replies | |
| 4/6 | scsi: iscsi, ql4: Use per session workqueue for unbinding.drivers/ drivers/ include/ | +17 | 2 replies | |
| 5/6 | scsi: iscsi: Use the session workqueue for recovery.drivers/ | +4 | 2 replies | |
| 6/6 | scsi: iscsi: Drop temp workq_name.drivers/ include/ | +2 | 2 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Lee Duncan | Chris Leech |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | R-b |
| 4/6 | R-b | R-b |
| 5/6 | R-b | R-b |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] iscsi: Speed up failover with lots of devices.
In:
https://lore.kernel.org/all/CAK3e-EZbJMDHkozGiz8LnMNAZ+SoCA+QeK0kpkqM4vQ4pz86SQ@mail.gmail.com/t/
Zhengyuan Liu found an issue where failovers are taking a long time with lots of devices (/dev/sdXYZ nodes). The problem is that iscsid expects most nl operations to be fast (ignoring mem issues) and when the session block code was written blocking a queue/scsi_device was just setting some flag bits and state values more or less. Now a block call will actually handle IO that has been sent to the driver, so it can be expensive. When you add in more and more devices, then a session block call will take longer and longer.
This patchset moves the recovery and unbind operations to a per session work queue instead of the mix or per session, host and module.