]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:42 +0000 (10:59 +0100)
commit4470ec554bdc633f3a9331f684dba2505dba0d6f
treea9ca5240cd34e169880dfdd28f244613c2347acd
parent579b07f617240e3c94d1ca0f8b07ec066345ee9a
io_uring: remove double poll on poll update

BugLink: https://bugs.launchpad.net/bugs/1959376
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io_uring.c