summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-03-13 08:48:45 -0600
committerJens Axboe <axboe@kernel.dk>2019-03-13 08:48:45 -0600
commita86522197d041b889519d6744d52477e80acce1e (patch)
treee12a67150067d131fa2fd5dad7d1f5b68a78af22
parenta231fdcaa13dbeff3cb9e1c7eeb98db4024aba4e (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.c2
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;
}
/*