[PATCH 04/15] io_uring: re-issue block requests that failed because of resources

2020-06-18 Thread Jens Axboe
Mark the plug with nowait == true, which will cause requests to avoid blocking on request allocation. If they do, we catch them and reissue them from a task_work based handler. Normally we can catch -EAGAIN directly, but the hard case is for split requests. As an example, the application issues a

Re: [PATCH 04/15] io_uring: re-issue block requests that failed because of resources

2020-06-19 Thread Pavel Begunkov
On 18/06/2020 17:43, Jens Axboe wrote: > Mark the plug with nowait == true, which will cause requests to avoid > blocking on request allocation. If they do, we catch them and reissue > them from a task_work based handler. > > Normally we can catch -EAGAIN directly, but the hard case is for split >

Re: [PATCH 04/15] io_uring: re-issue block requests that failed because of resources

2020-06-19 Thread Jens Axboe
On 6/19/20 8:12 AM, Pavel Begunkov wrote: > On 18/06/2020 17:43, Jens Axboe wrote: >> Mark the plug with nowait == true, which will cause requests to avoid >> blocking on request allocation. If they do, we catch them and reissue >> them from a task_work based handler. >> >> Normally we can catch -E

Re: [PATCH 04/15] io_uring: re-issue block requests that failed because of resources

2020-06-19 Thread Pavel Begunkov
On 19/06/2020 17:22, Jens Axboe wrote: > On 6/19/20 8:12 AM, Pavel Begunkov wrote: >> On 18/06/2020 17:43, Jens Axboe wrote: >>> Mark the plug with nowait == true, which will cause requests to avoid >>> blocking on request allocation. If they do, we catch them and reissue >>> them from a task_work

Re: [PATCH 04/15] io_uring: re-issue block requests that failed because of resources

2020-06-19 Thread Jens Axboe
On 6/19/20 8:30 AM, Pavel Begunkov wrote: > On 19/06/2020 17:22, Jens Axboe wrote: >> On 6/19/20 8:12 AM, Pavel Begunkov wrote: >>> On 18/06/2020 17:43, Jens Axboe wrote: Mark the plug with nowait == true, which will cause requests to avoid blocking on request allocation. If they do, we c