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>
Mon, 22 Mar 2021 13:42:50 +0000 (07:42 -0600)
commit2c6353e42a8703504c9afe3f7143fbece4f1dce5
tree6298c08f36675631b8d55b73b558a8f2b319288f
parentf8f54b198ca05708b4e4be49a13b307e5b156c63
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