diff options
| author | Christoph Hellwig <[email protected]> | 2024-10-28 09:07:48 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-10-28 18:35:05 +0000 |
| commit | be0e822bb3f5259c7f9424ba97e8175211288813 (patch) | |
| tree | a511e2122de81f69746a2d041a860d65bd0e71ad /drivers/usb/cdns3/cdns3-ti.c | |
| parent | block: fix sanity checks in blk_rq_map_user_bvec (diff) | |
| download | kernel-be0e822bb3f5259c7f9424ba97e8175211288813.tar.gz kernel-be0e822bb3f5259c7f9424ba97e8175211288813.zip | |
block: fix queue limits checks in blk_rq_map_user_bvec for real
blk_rq_map_user_bvec currently only has ad-hoc checks for queue limits,
and the last fix to it enabled valid NVMe I/O to pass, but also allowed
invalid one for drivers that set a max_segment_size or seg_boundary
limit.
Fix it once for all by using the bio_split_rw_at helper from the I/O
path that indicates if and where a bio would be have to be split to
adhere to the queue limits, and it returns a positive value, turn that
into -EREMOTEIO to retry using the copy path.
Fixes: 2ff949441802 ("block: fix sanity checks in blk_rq_map_user_bvec")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
