Skip to contentSkip to conversation

io_uring: fix CQ waiting timeout handling

PATCH Jens Axboe 1 participant 1 message Jan 5, 2023 io_uring

lore
Share & tools
lore

Jens Axboe

author maintainer Applied
#0 lore raw
Quoted 8 lines · Pavel Begunkov

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.

[...]

Applied, thanks!

[1/1] io_uring: fix CQ waiting timeout handling

      commit: 12521a5d5cb7ff0ad43eadfc9c135d86e1131fa8

Best regards,

Signature · 1 line
Jens Axboe