]> git.itanic.dy.fi Git - linux-stable/commit
io_uring/poll: add requeue return code from poll multishot handling
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Jan 2024 18:57:11 +0000 (11:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Jan 2024 20:19:47 +0000 (13:19 -0700)
commit704ea888d646cb9d715662944cf389c823252ee0
tree00478573f2beb8296d1d1799568139a1be0b9a80
parent91e5d765a82fb2c9d0b7ad930d8953208081ddf1
io_uring/poll: add requeue return code from poll multishot handling

Since our poll handling is edge triggered, multishot handlers retry
internally until they know that no more data is available. In
preparation for limiting these retries, add an internal return code,
IOU_REQUEUE, which can be used to inform the poll backend about the
handler wanting to retry, but that this should happen through a normal
task_work requeue rather than keep hammering on the issue side for this
one request.

No functional changes in this patch, nobody is using this return code
just yet.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h
io_uring/poll.c