Re: [PATCH] mm/filemap: restart mmap readahead on sequential faults after many misses
From: Gopal Malaviya
Date: Tue Nov 10 2026 - 15:53:31 EST
On Tue, Nov 10, 2026 at 09:15:49AM +0000, sashiko-bot@xxxxxxxxxx wrote:
> - [Medium] mm/filemap: do_sync_mmap_readahead() recovery fails when
> min_order > 0
> - [Medium] mm/filemap: do_sync_mmap_readahead() ignores VM_RAND_READ and
> !ra_pages
> - [Low] mm/filemap: prev_pos == -1 wraps to match pgoff 0 on 32-bit in
> mmap ra
Thanks, all three are right. On XFS with 16 KiB blocks the reproducer
still takes 4096 major faults with this patch, and on a MADV_HUGEPAGE
mapping with MADV_RANDOM it starts readahead anyway. I am testing a v2
that handles both and the 32-bit case, and will send it once the tests
are done.
The page_cache_ra_order() underflow is pre-existing; I will look at it
separately.