io_uring: unconditionally grab req->task
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 17:25:39 +0000 (11:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Nov 2020 11:45:35 +0000 (12:45 +0100)
commitf34e674fbe6dbb1aceeb2c43d917f00b0f7b5002
tree8798d409a0ef09a1a41c37e992e239a886e5cf84
parentbf03059892415cd40eeabc0fed13bbcd05ba2602
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c