android_kernel_xiaomi_sm7250/drivers/scsi/cxgbi
Mike Christie 693e09c3be 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:16:08 +02:00
..
cxgb3i scsi: cxgb4i: add wait_for_completion() 2019-02-27 10:08:55 +01:00
cxgb4i scsi: cxgb4i: add wait_for_completion() 2019-02-27 10:08:55 +01:00
Kconfig
libcxgbi.c scsi: iscsi: Fix shost->max_id use 2021-07-20 16:16:08 +02:00
libcxgbi.h scsi: cxgb4i: add wait_for_completion() 2019-02-27 10:08:55 +01:00
Makefile