summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorChristian A. Ehrhardt <lk@c--e.de>2026-06-06 22:11:20 +0200
committerJens Axboe <axboe@kernel.dk>2026-06-07 16:12:32 -0600
commit29fe1bd01b99714f3136f922230a643c2742cda9 (patch)
tree75159835bd66431ff48a0052b5c7dfb565a2f8d1 /include/uapi/linux
parent70f4886bcbb929e88038c8807f1daf7fc587ae7c (diff)
io_uring/wait: fix min_timeout behavior
The wakeup condition if a min timeout is present and has expired is that at least _one_ CQE was posted. Thus set the cq_tail target to ->cq_min_tail + 1. Without this commit a spurious wakeup can result in a premature wakeup because io_should_wake() will return true even if _no_ CQE was posted at all. Cc: Tip ten Brink <tip@tenbrinkmeijs.com> Fixes: e15cb2200b93 ("io_uring: fix min_wait wakeups for SQPOLL") Cc: stable@vger.kernel.org Signed-off-by: Christian A. Ehrhardt <lk@c--e.de> Link: https://patch.msgid.link/20260606201120.1441447-1-lk@c--e.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions