diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-27 04:44:42 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-27 04:44:42 +0300 |
commit | 6344a5cd3e8acf6e9823046cebd00b16faacdb1a (patch) | |
tree | c7e7d132543f739e71b897b018ac7c8e1518758c /drivers/scsi/sd.c | |
parent | 13b4389143413a1f18127c07f72c74cad5b563e8 (diff) | |
parent | d0eb20a863ba7dc1d3f4b841639671f134560be2 (diff) | |
download | linux-6344a5cd3e8acf6e9823046cebd00b16faacdb1a.tar.xz |
Merge remote-tracking branch 'mkp-scsi/4.5/scsi-fixes' into fixes
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 84fa4c46eaa6..bb669d32ccd0 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2893,7 +2893,7 @@ static int sd_revalidate_disk(struct gendisk *disk) sdkp->opt_xfer_blocks <= SD_DEF_XFER_BLOCKS && sdkp->opt_xfer_blocks * sdp->sector_size >= PAGE_CACHE_SIZE) rw_max = q->limits.io_opt = - logical_to_sectors(sdp, sdkp->opt_xfer_blocks); + sdkp->opt_xfer_blocks * sdp->sector_size; else rw_max = BLK_DEF_MAX_SECTORS; |