]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: stash ctx task reference for SQPOLL
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 17:15:07 +0000 (11:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Nov 2020 11:45:35 +0000 (12:45 +0100)
commitbf03059892415cd40eeabc0fed13bbcd05ba2602
treeee2a108756a58f1a586efebcc5c926e1697b8bb7
parentdd1acc182c85633bebc222d14acaf3f816503f0d
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c