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>
Sat, 23 May 2020 01:30:04 +0000 (19:30 -0600)
commit545b2035e3331f8bae9c2430e7bc2355a8958dd8
treea75e2666b81f39c3efbd59e29f7374dafb60705b
parent4cf0789233f199442cd0c4c53b3264ac46bf4124
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