io_uring/iopoll: fix unexpected returns
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 15:56:54 +0000 (16:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:14:59 +0000 (13:14 -0600)
commit9d54bd6a3bb495f2e7e4996efdaf1bef6ad62272
tree9199223147951d0f3b9c7744594c3127395a2332
parent6567506b68b0cae3934f1a58b35d709f38fc2e90
io_uring/iopoll: fix unexpected returns

We may propagate a positive return value of io_run_task_work() out of
io_iopoll_check(), which breaks our tests. io_run_task_work() doesn't
return anything useful for us, ignore the return value.

Fixes: c0e0d6ba25f1 ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/c442bb87f79cea10b3f857cbd4b9a4f0a0493fa3.1662652536.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c