io_uring: optimise tctx node checks/alloc
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:31 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commitcf27f3b14961845d816c49abc99aae4863207c77
tree2684637c6e095c9416d2c0ab2d187ff5ae41b12c
parent33f993da9829738da3e088fb5d3128880a4137ba
io_uring: optimise tctx node checks/alloc

First of all, w need to set tctx->sqpoll only when we add a new entry
into ->xa, so move it from the hot path. Also extract a hot path for
io_uring_add_task_file() as an inline helper.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c