io_uring: fix CQ waiting timeout handling
commit 12521a5d upstream. 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: 22833966 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
-
mentioned in commit 928a9e5c
-
mentioned in commit f632f774
-
mentioned in commit 6842e298
-
mentioned in commit a6bad52c
-
mentioned in commit e32bba5a
-
mentioned in commit 2e088c39
-
mentioned in commit c4f67f3d
-
mentioned in commit 5a856b58
-
mentioned in commit f3d530fe
-
mentioned in commit 7a8dd2f2
-
mentioned in commit fee5372a
-
mentioned in commit fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit 23ba6322
-
mentioned in commit 37a72833
-
mentioned in commit 855adfde
-
mentioned in commit 03e0842f
-
mentioned in commit cbd06de7
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment