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>
Mon, 25 Jul 2022 00:39:17 +0000 (18:39 -0600)
commit114eccdf0e368893b3d92e06e9788d9d94876853
treecc69f53bf7375db33e8038566c260363364f42e8
parent2ba69707d9153eeca1ee8ac1bc55376b88978842
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