[PATCH 03/10] mm: convert i_mmap_mutex to rwsem

2014-10-30 Thread Davidlohr Bueso
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. In addition, there are some important opportunities to share the lock when there are no tree modifications. Th

Re: [PATCH 03/10] mm: convert i_mmap_mutex to rwsem

2014-10-28 Thread Davidlohr Bueso
On Sat, 2014-10-25 at 01:45 +0300, Kirill A. Shutemov wrote: > On Fri, Oct 24, 2014 at 03:06:13PM -0700, Davidlohr Bueso wrote: > > diff --git a/mm/fremap.c b/mm/fremap.c > > index 72b8fa3..11ef7ec 100644 > > --- a/mm/fremap.c > > +++ b/mm/fremap.c > > @@ -238,13 +238,13 @@ get_write_lock: > >

Re: [PATCH 03/10] mm: convert i_mmap_mutex to rwsem

2014-10-24 Thread Kirill A. Shutemov
On Fri, Oct 24, 2014 at 03:06:13PM -0700, Davidlohr Bueso wrote: > diff --git a/mm/fremap.c b/mm/fremap.c > index 72b8fa3..11ef7ec 100644 > --- a/mm/fremap.c > +++ b/mm/fremap.c > @@ -238,13 +238,13 @@ get_write_lock: > } > goto out_freed; >

[PATCH 03/10] mm: convert i_mmap_mutex to rwsem

2014-10-24 Thread Davidlohr Bueso
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. In addition, there are some important opportunities to share the lock when there are no tree modifications. Th