Re: [PATCH 3/5] mm: convert i_mmap_mutex to rwsem

Rik van Riel
2014-05-23T17:34:09Z

On 05/22/2014 11:33 PM, Davidlohr Bueso wrote:
> The i_mmap_mutex is a close cousin of the anon vma lock,
> both protecting similar data, one for file backed pages
> and the other for anon memory. To this end, this lock can
> also be a rwsem.
>
> This conversion is straightforward. For now, all users take
> the write lock.
>
> Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>

Reviewed-by: Rik van Riel <riel@redhat.com>

--
All rights reversed