]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 25 Jul 2022 00:39:17 +0000 (18:39 -0600)
commit1a75b0600b5bfdedcb50aa609090f77be5ede448
tree9ca82f8acdb08227738337832e09e988acd7dfb4
parent89d68fca00741ce6bc8fc6d4a72693d25f8edb5c
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