OSDN Git Service

io_uring: clean up io_poll_check_events return values
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:24 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commit2ba69707d9153eeca1ee8ac1bc55376b88978842
treec475a58f4a3c39a0e075d36da789a171ad259dee
parentd4e097dae29c24bf33a5056a2a43cff2e45c4978
io_uring: clean up io_poll_check_events return values

The values returned are a bit confusing, where 0 and 1 have implied
meaning, so add some definitions for them.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-6-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c