commit | 11ae951d650479deeca20efeda96306c1e1e1b7c | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sat Nov 09 18:38:46 2019 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Nov 09 18:38:46 2019 -0700 |
tree | fceb9eadbd255459f4d5bfcc72b72e0a30c53157 | |
parent | f936339f27b0b30a1dbf7568547d219a397e4f23 [diff] |
__io_uring_submit_and_wait: check for SQ readiness for submit == 0 We could still have entries to submit even though we didn't flush any, if we previously tried to submit and failed or just submitted fewer than we had hoped. Adds a helper, io_uring_sq_ready(), which returns how many entries are in the SQ ring that the kernel hasn't consumed yet. Signed-off-by: Jens Axboe <axboe@kernel.dk>