summaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2015-06-23 18:13:59 +0200
committerJames Bottomley <JBottomley@Odin.com>2015-08-12 20:54:37 +0200
commit4f258a46346c03fa0bbb6199ffaf4e1f9f599660 (patch)
tree87f6203edaaa3e9156c5f1710427a1915195e98e /drivers/powercap
parentlibfc: Fix fc_fcp_cleanup_each_cmd() (diff)
downloadlinux-4f258a46346c03fa0bbb6199ffaf4e1f9f599660.tar.xz
linux-4f258a46346c03fa0bbb6199ffaf4e1f9f599660.zip
sd: Fix maximum I/O size for BLOCK_PC requests
Commit bcdb247c6b6a ("sd: Limit transfer length") clamped the maximum size of an I/O request to the MAXIMUM TRANSFER LENGTH field in the BLOCK LIMITS VPD. This had the unfortunate effect of also limiting the maximum size of non-filesystem requests sent to the device through sg/bsg. Avoid using blk_queue_max_hw_sectors() and set the max_sectors queue limit directly. Also update the comment in blk_limits_max_hw_sectors() to clarify that max_hw_sectors defines the limit for the I/O controller only. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reported-by: Brian King <brking@linux.vnet.ibm.com> Tested-by: Brian King <brking@linux.vnet.ibm.com> Cc: stable@vger.kernel.org # 3.17+ Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions