io_uring_wait_cqes: return right submission count on flush

If we flush and submit early to get the internal timeout queued, then
that's the return value we want to return. If not, then we just need
to subtract one from the actually submitted count.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed