diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-03-13 08:48:45 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-03-13 08:48:45 -0600 |
commit | a86522197d041b889519d6744d52477e80acce1e (patch) | |
tree | e12a67150067d131fa2fd5dad7d1f5b68a78af22 | |
parent | a231fdcaa13dbeff3cb9e1c7eeb98db4024aba4e (diff) |
queue: ensure io_uring_submit() returns the system call value
A previous fix that ensured we pass back the right error messed
up the normal return, which is number of entries submitted.
This makes the poll test cases fail.
Fixes: 8260029608b9 ("queue: ensure io_uring_submit() returns the right error")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue.c b/src/queue.c index 07bd81d..6767790 100644 --- a/src/queue.c +++ b/src/queue.c @@ -138,7 +138,7 @@ submit: if (ret < 0) return -errno; - return 0; + return ret; } /* |