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: 8260029608 ("queue: ensure io_uring_submit() returns the right error")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-03-13 08:48:45 -06:00
parent a231fdcaa1
commit a86522197d

View File

@@ -138,7 +138,7 @@ submit:
if (ret < 0) if (ret < 0)
return -errno; return -errno;
return 0; return ret;
} }
/* /*