]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
io_uring: fix tw losing poll events
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Nov 2022 18:40:15 +0000 (18:40 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Nov 2022 19:33:33 +0000 (12:33 -0700)
commit539bcb57da2f58886d7d5c17134236b0ec9cd15d
tree5ecb26a02405a4a11e15704798d203e36743e297
parentb98186aee22fa593bc8c6b2c5d839c2ee518bc8c
io_uring: fix tw losing poll events

We may never try to process a poll wake and its mask if there was
multiple wake ups racing for queueing up a tw. Force
io_poll_check_events() to update the mask by vfs_poll().

Cc: stable@vger.kernel.org
Fixes: aa43477b04025 ("io_uring: poll rework")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/00344d60f8b18907171178d7cf598de71d127b0b.1668710222.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c