]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use user visible tail in io_uring_poll()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Jan 2023 14:37:13 +0000 (14:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:03 +0000 (09:34 +0100)
commite2873be3055852fd84079641af480f29f56eb551
treef4b29f9575628ced70ff4f947904933895c188c1
parent65a5f0d6a5ccb6beed2b77da3c193a613f8c740a
io_uring: use user visible tail in io_uring_poll()

commit 84e7362767cf658436c239a8a1278c9c863d083d upstream.

We return POLLIN from io_uring_poll() depending on whether there are
CQEs for the userspace, and so we should use the user visible tail
pointer instead of a transient cached value.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/228ffcbf30ba98856f66ffdb9a6a60ead1dd96c0.1674484266.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c