linux/io_uring
Pavel Begunkov 12521a5d5c io_uring: fix CQ waiting timeout handling
Jiffy to ktime CQ waiting conversion broke how we treat timeouts, in
particular we rearm it anew every time we get into
io_cqring_wait_schedule() without adjusting the timeout. Waiting for 2
CQEs and getting a task_work in the middle may double the timeout value,
or even worse in some cases task may wait indefinitely.

Cc: stable@vger.kernel.org
Fixes: 228339662b398 ("io_uring: don't convert to jiffies for waiting on timeouts")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f7bffddd71b08f28a877d44d37ac953ddb01590d.1672915663.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-01-05 08:04:47 -07:00
..
2022-08-12 17:01:00 -06:00
2022-12-07 06:47:13 -07:00
2022-12-19 08:28:28 -07:00
2022-09-21 13:15:02 -06:00
2022-07-24 18:39:11 -06:00
2022-12-07 06:47:13 -07:00
2022-12-13 10:33:08 -08:00
2022-07-24 18:39:14 -06:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2022-10-07 12:25:30 -06:00