linux-brain/drivers/scsi/bnx2i
Mike Christie a686ea60c1 scsi: iscsi: Fix shost->max_id use
[ Upstream commit bdd4aad7ff92ae39c2e93c415bb6761cb8b584da ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:10:43 +02:00
..
57xx_iscsi_constants.h
57xx_iscsi_hsi.h
Kconfig scsi: bnx2i: Requires MMU 2020-12-30 11:50:53 +01: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 drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
bnx2i_init.c scsi: bnx2i: Simplify cpu hotplug code 2017-07-26 21:51:25 -04:00
bnx2i_iscsi.c scsi: iscsi: Fix shost->max_id use 2021-07-20 16:10:43 +02:00
bnx2i_sysfs.c