Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_uring/rsrc: fix incorrect assignment of iter->nr_segs in io_import…
…_fixed BugLink: https://bugs.launchpad.net/bugs/2075154 [ Upstream commit a23800f ] In io_import_fixed when advancing the iter within the first bvec, the iter->nr_segs is set to bvec->bv_len. nr_segs should be the number of bvecs, plus we don't need to adjust it here, so just remove it. Fixes: b000ae0 ("io_uring/rsrc: optimise single entry advance") Signed-off-by: Chenliang Li <[email protected]> Reviewed-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Stefan Bader <[email protected]> Signed-off-by: Roxana Nicolescu <[email protected]>
- Loading branch information