aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorBrian King <[email protected]>2015-01-29 21:54:40 +0000
committerChristoph Hellwig <[email protected]>2015-02-02 12:46:29 +0000
commit3a9794d32984b67a6d8992226918618f0e51e5d5 (patch)
tree63a25d8d1d8b851c97a0d24e334f1a317d07fb63 /drivers/net/xen-netback/interface.c
parentscsi: fix device handler detach oops (diff)
downloadkernel-3a9794d32984b67a6d8992226918618f0e51e5d5.tar.gz
kernel-3a9794d32984b67a6d8992226918618f0e51e5d5.zip
sd: Fix max transfer length for 4k disks
The following patch fixes an issue observed with 4k sector disks where the max_hw_sectors attribute was getting set too large in sd_revalidate_disk. Since sdkp->max_xfer_blocks is in units of SCSI logical blocks and queue_max_hw_sectors is in units of 512 byte blocks, on a 4k sector disk, every time we went through sd_revalidate_disk, we were taking the current value of queue_max_hw_sectors and increasing it by a factor of 8. Fix this by only shifting sdkp->max_xfer_blocks. Cc: [email protected] Signed-off-by: Brian King <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions