]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40b887702ef0cfabb6c244eee27befc3dc5798ad
tree9199223147951d0f3b9c7744594c3127395a2332
parent255dd210ee8505f6502ce2699a7b59f9786f2476
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: c386d8e6d7c4 ("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