Re: [PATCH, v2] anon_vmas: Convert the rwsem to an rwlock_t

From: Andrew Morton
Date: Mon Sep 30 2013 - 13:03:35 EST


On Sat, 28 Sep 2013 21:52:07 +0200 Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> Here's a an almost totally untested patch to convert the anon vma lock to
> an rwlock_t.

Both the anon vma lock and i_mmap_lock used to be spinlocks. Peter
turned them both into sleeping locks in this series:
https://lkml.org/lkml/2011/4/1/141

Later, Ingo turned the anon vma lock from an rwsem into a mutex
(https://lkml.org/lkml/2012/12/1/141) to permit a scalability fix
(https://lkml.org/lkml/2012/12/1/142).

Let's convince ourselves that we won't be undoing things which will
return to bite us?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/