diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-27 02:44:42 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-27 02:44:42 +0100 |
commit | 6344a5cd3e8acf6e9823046cebd00b16faacdb1a (patch) | |
tree | c7e7d132543f739e71b897b018ac7c8e1518758c /drivers/scsi/sd.c | |
parent | SCSI: fix crashes in sd and sr runtime PM (diff) | |
parent | sd: Optimal I/O size is in bytes, not sectors (diff) | |
download | linux-6344a5cd3e8acf6e9823046cebd00b16faacdb1a.tar.xz linux-6344a5cd3e8acf6e9823046cebd00b16faacdb1a.zip |
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; |