commit | 7ad0e4b2f83c25a996b918585b019afb044acc9f | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sun Dec 01 09:11:31 2019 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Dec 01 09:21:33 2019 -0700 |
tree | 2556ef7ea711b73b1f99a06500212b33d40ae0a9 | |
parent | ad2028eaed404bb29be03f400f73ebc04c3d0b9b [diff] |
Fix flush/submit with internal timeout The internal timeout handling relies on __io_uring_get_cqe() always doing a kernel enter, but it doesn't necessarily do that if we already have an available event pending. Make __io_uring_flush_sq() just flush the queue, and don't use the return value for the kernel side. Always just pass in what is pending in the actual ring, not the size of the internal state we flushed. Signed-off-by: Jens Axboe <axboe@kernel.dk>