Skip to content
Commit a23800f0 authored by Chenliang Li's avatar Chenliang Li Committed by Jens Axboe
Browse files

io_uring/rsrc: fix incorrect assignment of iter->nr_segs in io_import_fixed

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: b000ae0e

 ("io_uring/rsrc: optimise single entry advance")
Signed-off-by: default avatarChenliang Li <cliang01.li@samsung.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20240619063819.2445-1-cliang01.li@samsung.com
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f4a1254f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment