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>
Thu, 25 Mar 2021 16:24:21 +0000 (10:24 -0600)
commit7f3a8dcca33e23e7d22c4bb827c0b83efef5fc6e
tree3516b9effe1e6bb88408b5b040743557945159e0
parent2e180b8f08dcf09dff131f0c7313f219476dd48f
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