io_uring: add IOU_STOP_MULTISHOT return code
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:25 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:46:58 +0000 (08:46 -0600)
commitb3390b4b92b6a25084873dcb6781f65b8f867cb6
tree89e300591d9178254d9b233081125be86402794c
parentca814cd6207440d99bb022e51430ffd7c94359b7
io_uring: add IOU_STOP_MULTISHOT return code

For multishot we want a way to signal the caller that multishot has ended
but also this might not be an error return.

For example sockets return 0 when closed, which should end a multishot
recv, but still have a CQE with result 0

Introduce IOU_STOP_MULTISHOT which does this and indicates that the return
code is stored inside req->cqe

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-7-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h
io_uring/poll.c