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>
Mon, 12 Oct 2020 21:03:10 +0000 (15:03 -0600)
commit2951cff0148a9e1069201bd3c73c04e8bb13b19a
treed7523658225b0f0e64b828806218ba7ed9066ac3
parent851be0ed1af0a5cbeac216cfdd04e2695ca091ca
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