]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pvscsi: Advertise maxio of 256k.
authorWarner Losh <imp@FreeBSD.org>
Wed, 21 Apr 2021 18:10:42 +0000 (12:10 -0600)
committerAlexander Motin <mav@FreeBSD.org>
Wed, 19 Oct 2022 17:47:45 +0000 (13:47 -0400)
commitf51c1d1dd595ce51059489d7e1248ff6ba39664a
tree975b78dec5008f6f769775866e50d86d6ede5553
parentd074059e9814726ff57e7ccb09125fb958382e40
pvscsi: Advertise maxio of 256k.

While the PV SCSI SG list can handle 512k of SG entries, it can only do
so for I/O that's aligned to 4k or better. newfs_msdos does unaligned
I/O, so triggers too long for host errors in cam when a 512k I/O is
attempted. Prefer power of 2 256k to the absolute maximum 508k, though
that can be revisited should the latter show to give significant
performance improvement.

MFC After: 3 days
Tested by: darius on discord (508k version of patch)
Sponsored by: Netflix

(cherry picked from commit 9a5a5c1576b4ce308a97e0bce887261701ae3edc)
sys/dev/vmware/pvscsi/pvscsi.c