io_uring: stash ctx task reference for SQPOLL
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 17:15:07 +0000 (11:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 20:59:32 +0000 (14:59 -0600)
commit58de52ea305bfd27fd5bfa84e2ded39d2a806f34
tree0e55344851e3776edad7b5778e269ea2ac4c45e5
parent0444ce1e0b5967393447dcd5adbf2bb023a50aab
io_uring: stash ctx task reference for SQPOLL

commit 2aede0e417db846793c276c7a1bbf7262c8349b0 upstream.

We can grab a reference to the task instead of stashing away the task
files_struct. This is doable without creating a circular reference
between the ring fd and the task itself.

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