Rename completion helpers
We have io_uring_get_sqe() on the submission side, yet the completion side is named _completion. Rename as follows: io_uring_get_completion() io_uring_peek_cqe() iO_uring_wait_completion() io_uring_wait_cqe() This better tells the user what the _get variant does by calling it _peek instead, and we move to using _cqe() as the postfix instead of _completion. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -39,7 +39,7 @@ static int test_single_fsync(struct io_uring *ring)
|
||||
goto err;
|
||||
}
|
||||
|
||||
ret = io_uring_wait_completion(ring, &cqe);
|
||||
ret = io_uring_wait_cqe(ring, &cqe);
|
||||
if (ret < 0) {
|
||||
printf("wait completion %d\n", ret);
|
||||
goto err;
|
||||
@@ -107,7 +107,7 @@ static int test_barrier_fsync(struct io_uring *ring)
|
||||
}
|
||||
|
||||
for (i = 0; i < 5; i++) {
|
||||
ret = io_uring_wait_completion(ring, &cqe);
|
||||
ret = io_uring_wait_cqe(ring, &cqe);
|
||||
if (ret < 0) {
|
||||
printf("child: wait completion %d\n", ret);
|
||||
goto err;
|
||||
|
||||
Reference in New Issue
Block a user