commit | 7c504e65206a4379ff38fe41d21b32b6c2c3e53e | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Wed Dec 18 19:53:45 2019 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Dec 18 10:01:49 2019 -0700 |
tree | 7badbc25ff49df5c2493cd5516b9dcbdfa8d7b50 | |
parent | e781573e2fb1b75acdba61dcb9bcbfc16f288442 [diff] |
io_uring: don't wait when under-submitting There is no reliable way to submit and wait in a single syscall, as io_submit_sqes() may under-consume sqes (in case of an early error). Then it will wait for not-yet-submitted requests, deadlocking the user in most cases. Don't wait/poll if can't submit all sqes Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>