linux-stable/drivers/scsi/qedi
Mike Christie bdd4aad7ff scsi: iscsi: Fix shost->max_id use
The iscsi offload drivers are setting the shost->max_id to the max number
of sessions they support. The problem is that max_id is not the max number
of targets but the highest identifier the targets can have. To use it to
limit the number of targets we need to set it to max sessions - 1, or we
can end up with a session we might not have preallocated resources for.

Link: https://lore.kernel.org/r/20210525181821.7617-15-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-06-02 01:28:21 -04:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
qedi.h scsi: qedi: Add schedule_hw_err_handler callback for fan failure 2020-10-02 21:24:15 -04:00
qedi_dbg.c
qedi_dbg.h scsi: Fix various misspellings of "connect" 2019-10-24 21:22:32 -04:00
qedi_debugfs.c
qedi_fw.c scsi: qedi: Add firmware error recovery invocation support 2020-09-08 22:40:25 -04:00
qedi_fw_api.c
qedi_fw_iscsi.h
qedi_fw_scsi.h
qedi_gbl.h scsi: qedi: Add PCI shutdown handler support 2020-03-26 22:38:54 -04:00
qedi_hsi.h
qedi_iscsi.c scsi: iscsi: Rel ref after iscsi_lookup_endpoint() 2021-06-02 01:28:20 -04:00
qedi_iscsi.h scsi: qedi: Add PCI shutdown handler support 2020-03-26 22:38:54 -04:00
qedi_main.c scsi: iscsi: Fix shost->max_id use 2021-06-02 01:28:21 -04:00
qedi_nvm_iscsi_cfg.h
qedi_sysfs.c
qedi_version.h