io_uring: stash ctx task reference instead of task files
authorJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 22:01:15 +0000 (16:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 11:05:34 +0000 (05:05 -0600)
commit3d2f5519f3bd904bd8ac25278daef33e9919b142
tree689baa69672f03a2dc7fbc4e9bc5387fa366817e
parentd057c3cdafc3e389647973f6607e05e0d4c3bb09
io_uring: stash ctx task reference instead of task files

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.

This is in preparation for handling the ->files assignment a bit
differently, so we don't need to force SQPOLL to enter the kernel for
an update.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c