From a86522197d041b889519d6744d52477e80acce1e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 13 Mar 2019 08:48:45 -0600 Subject: 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 --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } /* -- cgit