diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2015-06-23 12:13:59 -0400 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-09-17 01:30:44 -0400 |
commit | 20d74bf29cfae86649bf1ec75038c79a9bc5010f (patch) | |
tree | e7e382c6e48022004f58a05da93133f9a5d3a34d /drivers/acpi/acpica/exconvrt.c | |
parent | 20b38ab5b687df3dbb873cfb0efa946a021f890a (diff) | |
download | linux-rt-20d74bf29cfae86649bf1ec75038c79a9bc5010f.tar.gz |
sd: Fix maximum I/O size for BLOCK_PC requests
[ Upstream commit 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 ]
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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/acpi/acpica/exconvrt.c')
0 files changed, 0 insertions, 0 deletions