summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-04-14 20:59:19 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-04-18 23:22:14 +0200
commit58c5d0d6d522112577c7eeb71d382ea642ed7be4 (patch)
tree18e74dcce2826b651093634757906c6b9b55e6a1 /mm/page_alloc.c
parentmaple_tree: fix mas_empty_area() search (diff)
downloadlinux-58c5d0d6d522112577c7eeb71d382ea642ed7be4.tar.xz
linux-58c5d0d6d522112577c7eeb71d382ea642ed7be4.zip
mm/mmap: regression fix for unmapped_area{_topdown}
The maple tree limits the gap returned to a window that specifically fits what was asked. This may not be optimal in the case of switching search directions or a gap that does not satisfy the requested space for other reasons. Fix the search by retrying the operation and limiting the search window in the rare occasion that a conflict occurs. Link: https://lkml.kernel.org/r/20230414185919.4175572-1-Liam.Howlett@oracle.com Fixes: 3499a13168da ("mm/mmap: use maple tree for unmapped_area{_topdown}") Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions