Skip to content
Commit 44152ece authored by Eric Blake's avatar Eric Blake Committed by Michael Roth
Browse files

scsi: Advertise limits by blocksize, not 512



s->blocksize may be larger than 512, in which case our
tweaks to max_xfer_len and opt_xfer_len must be scaled
appropriately.

CC: qemu-stable@nongnu.org
Reported-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
(cherry picked from commit efaf4781)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent c9fb07ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment