]> git.ipfire.org Git - thirdparty/linux.git/commit - include/linux/blkdev.h
block: Fix transfer when chunk sectors exceeds max
authorKeith Busch <keith.busch@intel.com>
Tue, 26 Jun 2018 15:14:58 +0000 (09:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jun 2018 18:18:27 +0000 (12:18 -0600)
commit15bfd21fbc5d35834b9ea383dc458a1f0c9e3434
tree7caba88b0f25237360f9cffdcf410817e65c571e
parentf5e350f021e04ea41d2e5d58487c33b05ba3d25b
block: Fix transfer when chunk sectors exceeds max

A device may have boundary restrictions where the number of sectors
between boundaries exceeds its max transfer size. In this case, we need
to cap the max size to the smaller of the two limits.

Reported-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Tested-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h