io_uring/net: move mm accounting to a slower path
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 4 Nov 2022 10:59:46 +0000 (10:59 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Nov 2022 14:38:31 +0000 (07:38 -0700)
commit42385b02baad0df55474b7f36dc13e0d4ffd0cc0
tree4a03a31927cb0927c452e40b2a2d8741d023b1e8
parent40725d1b960f19a11a1ebd1ab537844ebf39347c
io_uring/net: move mm accounting to a slower path

We can also move mm accounting to the extended callbacks. It removes a
few cycles from the hot path including skipping one function call and
setting io_req_task_complete as a callback directly. For user backed I/O
it shouldn't make any difference taking into considering atomic mm
accounting and page pinning.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1062f270273ad11c1b7b45ec59a6a317533d5e64.1667557923.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/notif.c