[PATCH 15/15] io_uring: support true async buffered reads, if file provides it

2020-06-18 Thread Jens Axboe
If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt the buffered read to an io-wq worker. Instead we can rely on page unlocking callbacks to support retry based async IO. This is a lot more efficient than doing async thread offload. The retry is done similarly to how we handle

Re: [PATCH 15/15] io_uring: support true async buffered reads, if file provides it

2020-06-23 Thread Pavel Begunkov
On 18/06/2020 17:43, Jens Axboe wrote: > If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt > the buffered read to an io-wq worker. Instead we can rely on page > unlocking callbacks to support retry based async IO. This is a lot more > efficient than doing async thread offload

Re: [PATCH 15/15] io_uring: support true async buffered reads, if file provides it

2020-06-23 Thread Jens Axboe
On 6/23/20 6:39 AM, Pavel Begunkov wrote: > On 18/06/2020 17:43, Jens Axboe wrote: >> If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt >> the buffered read to an io-wq worker. Instead we can rely on page >> unlocking callbacks to support retry based async IO. This is a lot m