]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: mpi3mr: Enable shared host tagset
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Tue, 28 Jun 2022 07:48:47 +0000 (13:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 20:46:11 +0000 (16:46 -0400)
Enable shared host tagset to make sure that total outstanding I/O count can
not exceed controller's can_queue setting.

Link: https://lore.kernel.org/r/20220628074848.5036-2-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c

index d8c195b7ca574296557bfec72d36b2de9de85841..da85eda84484b6e568a7f1242635dba36ac1526e 100644 (file)
@@ -4321,6 +4321,8 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        shost->max_channel = 0;
        shost->max_id = 0xFFFFFFFF;
 
+       shost->host_tagset = 1;
+
        if (prot_mask >= 0)
                scsi_host_set_prot(shost, prot_mask);
        else {