io_uring: add task-refs-get helper
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 27 Aug 2021 10:55:01 +0000 (11:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Aug 2021 13:29:41 +0000 (07:29 -0600)
commit9a10867ae54e02a0f204d2eebea5a446fb7a86f9
tree6e89fed58538efb603f1edd294cbb25d850e6ea9
parenta8295b982c46d4a7c259a4cdd58a2681929068a9
io_uring: add task-refs-get helper

As we have a more complicated task referencing, which apart from normal
task references includes taking tctx->inflight and caching all that, it
would be a good idea to have all that isolated in helpers.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d9114d037f1c195897aa13f38a496078eca2afdb.1630023531.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c