On Mon, 28 Oct 2024 10:07:48 +0100, Christoph Hellwig wrote: > 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 it returns a positive value, turn > that into -EREMOTEIO to retry using the copy path. > > [...] Applied, thanks! [1/1] block: fix queue limits checks in blk_rq_map_user_bvec for real commit: be0e822bb3f5259c7f9424ba97e8175211288813 Best regards, -- Jens Axboe