io_uring: fix multishot ending when not polled
authorDylan Yudaken <dylany@fb.com>
Fri, 8 Jul 2022 18:18:35 +0000 (11:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:47:08 +0000 (08:47 -0600)
commit08c3be1466ae1e53609c27e3191331ac54d6e2d5
tree06928f84508cab9bc25ee1d12a38c98b9370c0af
parentb787bc318d0f501c1d643528a83fb4ef3b82f810
io_uring: fix multishot ending when not polled

If multishot is not actually polling then return IOU_OK rather than the
result.
If the result was > 0 this will confuse things further up the callstack
which expect a return <= 0.

Fixes: 1300ebb20286 ("io_uring: multishot recv")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220708181838.1495428-2-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c