On 1/2/25 23:33, Christoph Hellwig wrote: > Lift bio_split_rw_at into blk_rq_append_bio so that it validates the > hardware limits. With this all passthrough callers can simply add > bio_add_page to build the bio and delay checking for exceeding of limits > to this point instead of doing it for each page. > > While this looks like adding a new expensive loop over all bio_vecs, > blk_rq_append_bio is already doing that just to counter the number of > segments. > > Signed-off-by: Christoph Hellwig<hch@xxxxxx> Looks good. Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> -ck