]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/rsrc: refactor io_import_fixed
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Apr 2025 09:32:33 +0000 (10:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Apr 2025 12:21:13 +0000 (06:21 -0600)
commit59852ebad954c8a3ac8b746930c2ea60febe797a
tree83c5d7034b6efbfd68a96a9fd57f1be38f7140df
parent50169d07548441e3033b9bbaa06e573e7224f140
io_uring/rsrc: refactor io_import_fixed

io_import_fixed is a mess. Even though we know the final len of the
iterator, we still assign offset + len and do some magic after to
correct for that.

Do offset calculation first and finalise it with iov_iter_bvec at the
end.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2d5107fed24f8b23245ef2ede9a5a7f7c426df61.1744882081.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c