Files
erofs-linux/block
Christoph Hellwig df308a1458 block: fix aligning of bounced dio read bios
bio_iov_iter_align_down expects the "normal" biovec layout from vector 0,
while bio_iov_iter_bounce_read abuses vector 0 for a bounce buffer
allocation.  Pass an explicit bvec to bio_iov_iter_align_down to deal
with this case to avoid a double unpin.

Additionally we need to free the folio if no bio_vec could be added,
and adjust the size of the first bio_vec that contains the bounce buffer
when the I/O size is aligned down.

Fixes: e7b8b3c5b2 ("block: align down bounces bios")
Reported-by: 0wnerD1ed <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: 0wnerD1ed <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
2026-07-16 06:11:37 -06:00
..
…
…
…
2026-05-28 07:59:18 -06:00
…
2026-03-31 07:04:00 -06:00
2026-03-31 07:04:00 -06:00