diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-09-07 10:40:54 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-09-11 07:24:54 -0600 |
| commit | 9dd2351aef70512373f79ace94097a32e5ed0f70 (patch) | |
| tree | 3f97eda6a9a4258be76ac8eae8f4de4047537683 /tools/perf/scripts/python | |
| parent | 1418b5633ca973723fd20db5c394e5b031f2bd85 (diff) | |
block: improve aligning down bios in bio_iov_iter_bounce_write
Sashiko complained about bio_iov_iter_align_down potentially dropping
bvecs, and thus losing bounce folios. While losing bio_vecs is real,
bio_iov_iter_bounce_write allocates all segments and thus the entire bio
in multiples of the minsize, thus making the rounding down redundant.
Replace it with a safety rounding down of this_len in case something odd
happens to the greedy folio allocation helper.
Fixes: e7b8b3c5b2a6 ("block: align down bounces bios")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <mkp@kernel.org>
Link: https://patch.msgid.link/20260907074111.721054-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
