io_uring: stash ctx task reference for SQPOLL
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Sep 2020 16:45:53 +0000 (10:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:32 +0000 (20:32 -0600)
commit2aede0e417db846793c276c7a1bbf7262c8349b0
treef32545b7c772afdf1990b772d5e525f18b3c5c2f
parentf573d384456b3025d3f8e58b3eafaeeb0f510784
io_uring: stash ctx task reference for SQPOLL

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