io_uring: unconditionally grab req->task
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 17:25:39 +0000 (11:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 20:59:32 +0000 (14:59 -0600)
commit05f573ae2fc8b5308bd442502e03328e01345cf4
tree738596298639baf2f42d0fead6b6f90a26e73de7
parent58de52ea305bfd27fd5bfa84e2ded39d2a806f34
io_uring: unconditionally grab req->task

commit e3bc8e9dad7f2f83cc807111d4472164c9210153 upstream.

Sometimes we assign a weak reference to it, sometimes we grab a
reference to it. Clean this up and make it unconditional, and drop the
flag related to tracking this state.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c