Prev: clk: Generic support for fixed-rate clocks
Next: [PATCH -mm 2/6] rmap: always add new vmas at the end
From: Rik van Riel on 21 Jun 2010 16:50 From: Andrea Arcangeli <aarcange(a)redhat.com> Subject: remove unnecessary lock from __vma_link There's no anon-vma related mangling happening inside __vma_link anymore so no need of anon_vma locking there. Signed-off-by: Andrea Arcangeli <aarcange(a)redhat.com> Signed-off-by: Rik van Riel <riel(a)redhat.com> --- diff --git a/mm/mmap.c b/mm/mmap.c --- a/mm/mmap.c +++ b/mm/mmap.c @@ -469,12 +469,10 @@ static void vma_link(struct mm_struct *m spin_lock(&mapping->i_mmap_lock); vma->vm_truncate_count = mapping->truncate_count; } - vma_lock_anon_vma(vma); __vma_link(mm, vma, prev, rb_link, rb_parent); __vma_link_file(vma); - vma_unlock_anon_vma(vma); if (mapping) spin_unlock(&mapping->i_mmap_lock); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |