Re: [PATCH 0/4] per anon_vma lock and turn anon_vma rwsem lock to rwlock_t

Davidlohr Bueso
2013-11-01T17:49:51Z

On Fri, 2013-11-01 at 09:01 +0100, Ingo Molnar wrote:
> * Yuanhan Liu <yuanhan.liu@linux.intel.com> wrote:
>
> > Patch 1 turns locking the anon_vma's root to locking itself to let it be
> > a per anon_vma lock, which would reduce contentions.
> >
> > In the same time, lock range becomes quite small then, which is bascially
> > a call of anon_vma_interval_tree_insert(). Patch 2 turn rwsem to rwlock_t.
> > It's a patch made from Ingo, I just made some change to let it apply based on
> > patch 1.

Andrea's last input from this kind of conversion is that it cannot be
done (at least yet): https://lkml.org/lkml/2013/9/30/53

Thanks,
Davidlohr