]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: SAUCE: storvsc: use small sg_tablesize on x86
authorJoseph Salisbury <joseph.salisbury@canonical.com>
Thu, 15 Oct 2015 17:53:12 +0000 (13:53 -0400)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 25 Nov 2019 13:56:26 +0000 (14:56 +0100)
BugLink: http://bugs.launchpad.net/bugs/1495983
OriginalAuthor: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Brad Figg <brad.figg@canonical.com>
drivers/scsi/storvsc_drv.c

index 542d2bac2922c90b0f38ac637edbe60b04df78fc..3c2ead200eed59459ba63c3c852eb34bf9c55dd8 100644 (file)
@@ -1834,6 +1834,12 @@ static int storvsc_probe(struct hv_device *device,
         * from the host.
         */
        host->sg_tablesize = (stor_device->max_transfer_bytes >> PAGE_SHIFT);
+#if defined(CONFIG_X86_32)
+       dev_warn(&device->device, "adjusting sg_tablesize 0x%x -> 0x%x",
+                       host->sg_tablesize, MAX_MULTIPAGE_BUFFER_COUNT);
+       host->sg_tablesize = MAX_MULTIPAGE_BUFFER_COUNT;
+#endif
+
        /*
         * Set the number of HW queues we are supporting.
         */