lkml.org 
[lkml]   [2022]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 13/35] x86/mm: attempt speculative mm faults first
On Tue, Feb 01, 2022 at 05:16:43PM +0000, Liam Howlett wrote:
> > + vma = __find_vma(mm, address);
> > + if (!vma || vma->vm_start > address) {
>
> This fits the vma_lookup() pattern - although you will have to work
> around the locking issue still. This is the same for the other
> platforms too; they fit the pattern also.

In this case, I think it's just as well to follow the lines of the
non-speculative path, which itself can't use vma_lookup() because it
needs to handle the stack expansion case...

--
Michel "walken" Lespinasse

\
 
 \ /
  Last update: 2022-02-07 18:52    [W:0.068 / U:24.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site