]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:14:31 +0000 (19:14 +0100)
commit4023b7b210710dbd78949fac9f2332cd10887423
tree9b62a3ad5b4d270fe8f3ed5795fa5b6e96afa204
parente8fd56fd42ebea41dd22c366967211be05d42d6f
io_uring/poll: add requeue return code from poll multishot handling

Commit 704ea888d646cb9d715662944cf389c823252ee0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.h
io_uring/poll.c