io_uring: cancel only requests of current task
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 6 Nov 2020 13:00:23 +0000 (13:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:59 +0000 (11:53 +0100)
commita773dea1a9f2e55cc1c5d145d238630d7d69609a
tree5dc2d014207f51199dcbbb7b1e0b75214b8d5df2
parent4b148744090bef856269f4cd1856f3d16ac9f276
io_uring: cancel only requests of current task

[ Upstream commit df9923f96717d0aebb0a73adbcf6285fa79e38cb ]

io_uring_cancel_files() cancels all request that match files regardless
of task. There is no real need in that, cancel only requests of the
specified task. That also handles SQPOLL case as it already changes task
to it.

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