[PATCH] Revert "scsi: core: Cap scsi_host cmd_per_lun at can_queue"
Tim Gardner
tim.gardner at canonical.com
Fri Oct 8 14:53:51 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1940564
This reverts commit ce0da9f6062f460c27a7fe6e566c330991e757d8.
(upstream commit dcb634e434b850287b31a117637cbf598563ce1c)
This patch causes boot failures on instances with large numbers
of CPUs and SCSI LUNs, the product of which overflows a 16 bit
quantity. To date, that combination exists in Azure instance
types Standard_M416s_v2 and Azure Standard_D48_v3.
Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
---
drivers/scsi/hosts.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index da3920a19d53d..bd0dcb540f822 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -220,9 +220,6 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
goto fail;
}
- shost->cmd_per_lun = min_t(short, shost->cmd_per_lun,
- shost->can_queue);
-
error = scsi_init_sense_cache(shost);
if (error)
goto fail;
--
2.33.0
More information about the kernel-team
mailing list