io_uring: change io_get_ext_arg() to use uaccess begin + end
authorJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 19:41:42 +0000 (13:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Oct 2024 19:22:30 +0000 (13:22 -0600)
commit0f30070c65242aa5e4c1cfb10e8fa48ea5de6520
tree815f934ab05e17b144e44b3502f4eb4d878c5404
parent43bcca571272b8b5a2d3bc900aa599bede416350
io_uring: change io_get_ext_arg() to use uaccess begin + end

In scenarios where a high frequency of wait events are seen, the copy
of the struct io_uring_getevents_arg is quite noticeable in the
profiles in terms of time spent. It can be seen as up to 3.5-4.5%.
Rewrite the copy-in logic, saving about 0.5% of the time.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c