Re: [PATCH 2/4] mm/rmap: convert anon_vma rwsem to rwlock_t

Peter Zijlstra
2013-11-01T08:46:12Z

On Fri, Nov 01, 2013 at 03:54:25PM +0800, Yuanhan Liu wrote:
> --- a/mm/mmap.c
> +++ b/mm/mmap.c
> @@ -2955,15 +2955,15 @@ static void vm_lock_anon_vma(struct mm_struct *mm, struct anon_vma *anon_vma)
> * The LSB of head.next can't change from under us
> * because we hold the mm_all_locks_mutex.
> */
> - down_write_nest_lock(&anon_vma->rwsem, &mm->mmap_sem);
> + write_lock(&anon_vma->rwlock);