https://github.com/torvalds/linux
Revision 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 authored by Martin K. Petersen on 23 June 2015, 16:13:59 UTC, committed by James Bottomley on 12 August 2015, 18:54:37 UTC
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>
1 parent 8f2777f
History
Tip revision: 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 authored by Martin K. Petersen on 23 June 2015, 16:13:59 UTC
sd: Fix maximum I/O size for BLOCK_PC requests
Tip revision: 4f258a4

README.AddingFirmware

back to top