Skip to content

iscsi: Speed up failover with lots of devices.

Mike Christie linux-scsi 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 16 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6scsi: iscsi: Fix recovery and ublocking race.drivers/scsi/scsi_transport_iscsi.c+2 -52 replies
2/6scsi: iscsi: Speed up session unblocking and removal.drivers/scsi/scsi_transport_iscsi.c+5 -42 replies
3/6scsi: iscsi: Remove iscsi_scan_finished.drivers/scsi/scsi_transport_iscsi.c include/scsi/scsi_transport_iscsi.h+4 -373 replies
4/6scsi: iscsi, ql4: Use per session workqueue for unbinding.drivers/scsi/qla4xxx/ql4_os.c drivers/scsi/scsi_transport_iscsi.c include/scsi/scsi_transport_iscsi.h+17 -62 replies
5/6scsi: iscsi: Use the session workqueue for recovery.drivers/scsi/scsi_transport_iscsi.c+4 -162 replies
6/6scsi: iscsi: Drop temp workq_name.drivers/scsi/libiscsi.c include/scsi/libiscsi.h+2 -52 replies

Reviews trailers per patch

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

PatchLee DuncanChris Leech
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

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

Read the v1 thread

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.