]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/rsrc: don't skip offset calculation
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Apr 2025 09:32:31 +0000 (10:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Apr 2025 12:21:13 +0000 (06:21 -0600)
commit1ac571288822253db32196c49f240739148417e3
tree4698cd0eabccdbaa21fc70d5179adeb00dfeb6af
parent70e4f9bfc13c9abcc97eb9f2feee51cc925524c8
io_uring/rsrc: don't skip offset calculation

Don't optimise for requests with offset=0. Large registered buffers are
the preference and hence the user is likely to pass an offset, and the
adjustments are not expensive and will be made even cheaper in following
patches.

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