diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-05-22 08:59:42 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-21 20:44:25 -0600 |
commit | 2e85abf053b99a6488f1b529d7aa3b8d7478adae (patch) | |
tree | a26e6971c7cafc9e1faa17f2a40476acb8b9cf96 /mm/filemap.c | |
parent | b63534c41e20b474483b4ddf47efc858c17352e0 (diff) | |
download | linux-stable-2e85abf053b99a6488f1b529d7aa3b8d7478adae.tar.gz linux-stable-2e85abf053b99a6488f1b529d7aa3b8d7478adae.tar.bz2 linux-stable-2e85abf053b99a6488f1b529d7aa3b8d7478adae.zip |
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>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index f0ae9a6308cb..3378d4fca883 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2028,8 +2028,6 @@ find_page: page = find_get_page(mapping, index); if (!page) { - if (iocb->ki_flags & IOCB_NOWAIT) - goto would_block; page_cache_sync_readahead(mapping, ra, filp, index, last_index - index); |