Commit 5f53c4e9 authored by Joseph Salisbury's avatar Joseph Salisbury Committed by Tim Gardner

UBUNTU: SAUCE: storvsc: use small sg_tablesize on x86

BugLink: http://bugs.launchpad.net/bugs/1495983

OriginalAuthor: Olaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarJoseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarBrad Figg <brad.figg@canonical.com>
parent 464e0afc
......@@ -1633,6 +1633,11 @@ 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
/* Register the HBA and start the scsi bus scan */
ret = scsi_add_host(host, &device->device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment