Files
linux/mm
Jan Kara e608889947 UPSTREAM: mm/filemap.c: don't bother dropping mmap_sem for zero size readahead
When handling a page fault, we drop mmap_sem to start async readahead so
that we don't block on IO submission with mmap_sem held.  However there's
no point to drop mmap_sem in case readahead is disabled.  Handle that case
to avoid pointless dropping of mmap_sem and retrying the fault.  This was
actually reported to block mlockall(MCL_CURRENT) indefinitely.

Fixes: 6b4c9f4469 ("filemap: drop the mmap_sem for all blocking operations")
Reported-by: Minchan Kim <minchan@kernel.org>
Reported-by: Robert Stupp <snazy@gmx.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Link: http://lkml.kernel.org/r/20200212101356.30759-1-jack@suse.cz
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 5c72feee3e)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iecc3a1972853a74d2faf70203fa34d912235be0b
2020-11-16 07:43:08 +01:00
..
2019-11-20 20:43:17 +01:00
2020-02-11 15:05:03 -08:00
2020-10-01 16:49:05 +02:00
2020-03-11 17:10:39 +01:00
2020-03-25 08:06:13 +01:00
2019-10-11 18:20:58 +02:00
2020-06-22 10:50:54 +02:00
2018-12-01 09:37:33 +01:00
2018-02-06 18:32:48 -08:00