OSDN Git Service

mm: allow read-ahead with IOCB_NOWAIT set
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 14:59:42 +0000 (08:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 02:44:25 +0000 (20:44 -0600)
commit2e85abf053b99a6488f1b529d7aa3b8d7478adae
treea26e6971c7cafc9e1faa17f2a40476acb8b9cf96
parentb63534c41e20b474483b4ddf47efc858c17352e0
mm: allow read-ahead with IOCB_NOWAIT set

The read-ahead shouldn't block, so allow it to be done even if
IOCB_NOWAIT is set in the kiocb.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c