io_uring: remove double poll on poll update
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Dec 2021 22:08:44 +0000 (22:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:48 +0000 (11:03 +0100)
commitdeb0c71e0b26031c962278313d33a4867b9a1e19
tree9b9e76bce0cde302f215fbff061f2e06ca826f19
parent8d3d1c365a8925d25d586170e3efb54d4b2fa373
io_uring: remove double poll on poll update

[ Upstream commit e840b4baf3cfb37e2ead4f649a45bb78178677ff ]

Before updating a poll request we should remove it from poll queues,
including the double poll entry.

Fixes: b69de288e913 ("io_uring: allow events and user_data update of running poll requests")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ac39e7f80152613603b8a6cc29a2b6063ac2434f.1639605189.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c