mm: support async buffered reads in generic_file_buffered_read()
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 15:18:38 +0000 (09:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 May 2020 16:34:40 +0000 (10:34 -0600)
commit23d513106fd892d84594b7f3f34bc12d58467f43
tree0c951c0c93eacc0a53d0b9034660aa8f5f9c88a7
parentb8f6f50c5906684c13426873dd28c83312d76e30
mm: support async buffered reads in generic_file_buffered_read()

Use the async page locking infrastructure, if IOCB_WAITQ is set in the
passed in iocb. The caller must expect an -EIOCBQUEUED return value,
which means that IO is started but not done yet. This is similar to how
O_DIRECT signals the same operation. Once the callback is received by
the caller for IO completion, the caller must retry the operation.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c