io_uring: simplify io_task_match()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 9 Feb 2021 04:47:35 +0000 (04:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:54:54 +0000 (13:54 +0100)
commitfe9334186a50166f4d5f1e9bfedd257d22e6c4a9
tree5eeb81d265e8cb0074438b7bdfb93e0c65a415fd
parent2d18b3ee633e0c9d7ddcaa489299113fb88ea672
io_uring: simplify io_task_match()

[ Upstream commit 06de5f5973c641c7ae033f133ecfaaf64fe633a6 ]

If IORING_SETUP_SQPOLL is set all requests belong to the corresponding
SQPOLL task, so skip task checking in that case and always match.

Signed-off-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