]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ibmvscsis: Increase INITIAL_SRP_LIMIT to 1024
authorTyrel Datwyler <tyreld@linux.ibm.com>
Tue, 22 Mar 2022 19:44:43 +0000 (12:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:34:15 +0000 (09:34 +0200)
commita6f87147bef58529504f2db100ad81f04c51b54f
treea2b68bdf9f7043886eb13ddaf73bacf2a61396bc
parentead20bd58031bc9115921973c243e21ca07a7e29
scsi: ibmvscsis: Increase INITIAL_SRP_LIMIT to 1024

[ Upstream commit fba6944928091c0c4a867f522f0c665069155a32 ]

The adapter request_limit is hardcoded to be INITIAL_SRP_LIMIT which is
currently an arbitrary value of 800. Increase this value to 1024 which
better matches the characteristics of the typical IBMi Initiator that
supports 32 LUNs and a queue depth of 32.

This change also has the secondary benefit of being a power of two as
required by the kfifo API. Since, Commit bbcfc4ec702a ("Partially revert
"kfifo: fix kfifo_alloc() and kfifo_init()"") the size of IU pool for each
target has been rounded down to 512 when attempting to kfifo_init() those
pools with the current request_limit size of 800.

Link: https://lore.kernel.org/r/20220322194443.678433-1-tyreld@linux.ibm.com
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c