diff options
| author | Jens Axboe <[email protected]> | 2025-04-16 22:48:26 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-04-17 17:59:12 +0000 |
| commit | b419bed4f0a62c65a57dd495185821dd56bc435c (patch) | |
| tree | 5990977344f44446681900c2b1b6e9d0a1ef748a /rust/helpers | |
| parent | io_uring/rsrc: send exact nr_segs for fixed buffer (diff) | |
| download | kernel-b419bed4f0a62c65a57dd495185821dd56bc435c.tar.gz kernel-b419bed4f0a62c65a57dd495185821dd56bc435c.zip | |
io_uring/rsrc: ensure segments counts are correct on kbuf buffers
kbuf imports have the front offset adjusted and segments removed, but
the tail segments are still included in the segment count that gets
passed in the iov_iter. As the segments aren't necessarily all the
same size, move importing to a separate helper and iterate the
mapped length to get an exact count.
Reviewed-by: Nitesh Shetty <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
