X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mm%2Fmmap.c;h=0db0de1c2fbee21e0e9919af66021b190d789731;hb=ec693d47010e8302e61e0bdf3f47496c5610641a;hp=6466699b16cbca1a26c8792f9d484925a23df005;hpb=17eb3d8fbe4c573426fc99946040305e79c07803;p=~andy%2Flinux diff --git a/mm/mmap.c b/mm/mmap.c index 6466699b16c..0db0de1c2fb 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1940,7 +1940,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr) /* Check the cache first. */ /* (Cache hit rate is typically around 35%.) */ - vma = mm->mmap_cache; + vma = ACCESS_ONCE(mm->mmap_cache); if (!(vma && vma->vm_end > addr && vma->vm_start <= addr)) { struct rb_node *rb_node;