]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e6814bb582d7587612d73c3708028966850c036
treef32545b7c772afdf1990b772d5e525f18b3c5c2f
parent31de1870e4d7011dae8829eacc6154c9bd527944
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