Re: [PATCH v5] io_uring: don't wait when under-submitting
From: Jens Axboe
Date: Wed Dec 18 2019 - 11:56:54 EST
On 12/18/19 9:53 AM, Pavel Begunkov wrote:
> 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
This looks great, thanks, applied.
--
Jens Axboe