WSL2-Linux-Kernel/drivers/scsi/bnx2i
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
..
57xx_iscsi_constants.h
57xx_iscsi_hsi.h
Kconfig scsi: bnx2i: Requires MMU 2020-12-02 12:59:04 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bnx2i.h scsi: bnx2i: Convert timers to use timer_setup() 2017-10-27 02:22:00 -07:00
bnx2i_hwi.c scsi: bnx2i: Make bnx2i_process_iscsi_error() simpler and more robust 2021-03-24 22:21:31 -04:00
bnx2i_init.c scsi: bnx2i: Remove unnecessary mutex_init() 2020-09-22 20:21:02 -04:00
bnx2i_iscsi.c scsi: iscsi: Fix shost->max_id use 2021-06-02 01:28:21 -04:00
bnx2i_sysfs.c scsi: bnx2i: Fix bnx2i_set_ccell_info()'s name in description 2021-03-15 22:28:59 -04:00