]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't wait when under-submitting
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 18 Dec 2019 16:53:45 +0000 (19:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Dec 2019 17:01:49 +0000 (10:01 -0700)
commit78940db119500bc1deda3c209155d9eaf3af0052
tree7badbc25ff49df5c2493cd5516b9dcbdfa8d7b50
parent2417b1cd3246f9060626ed0930ccf73df6ee039d
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>
fs/io_uring.c