Skip to content
Commit bcf5a063 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: support true async buffered reads, if file provides it



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 poll based retry. From
the unlock callback, we simply queue the retry to a task_work based
handler.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d1932dc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment