io_uring: support true async buffered reads, if file provides it async-buffered.8
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 15:24:42 +0000 (09:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 21 Jun 2020 15:11:09 +0000 (09:11 -0600)
commitf3c9685bd8dfa18dfac1a53c5e6fa5330d3ab31f
tree1f5ef3d40ef7a416a7005a1ebcf180d3e9251557
parent061a4bda8affe46817f8bdf91c5a6da92245ce17
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: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c