Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-10 Thread Mel Gorman
On Mon, Nov 03, 2014 at 10:35:04PM -0800, Hugh Dickins wrote: > On Thu, 30 Oct 2014, Davidlohr Bueso wrote: > > > The i_mmap_rwsem protects shared pages against races > > when doing the sharing and unsharing, ultimately > > calling huge_pmd_share/unshare() for PMD pages -- > > it also needs it to

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-10 Thread Mel Gorman
On Mon, Nov 03, 2014 at 10:35:04PM -0800, Hugh Dickins wrote: On Thu, 30 Oct 2014, Davidlohr Bueso wrote: The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-05 Thread Hugh Dickins
On Tue, 4 Nov 2014, Davidlohr Bueso wrote: > 8< > From: Davidlohr Bueso > Subject: [PATCH 11/10] mm/memory.c: share the i_mmap_rwsem > > The unmap_mapping_range family of functions do the unmapping > of user pages (ultimately via

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-05 Thread Hugh Dickins
On Tue, 4 Nov 2014, Davidlohr Bueso wrote: 8 From: Davidlohr Bueso d...@stgolabs.net Subject: [PATCH 11/10] mm/memory.c: share the i_mmap_rwsem The unmap_mapping_range family of functions do the unmapping of user pages (ultimately via

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-04 Thread Davidlohr Bueso
On Mon, 2014-11-03 at 22:35 -0800, Hugh Dickins wrote: > On Thu, 30 Oct 2014, Davidlohr Bueso wrote: > > > The i_mmap_rwsem protects shared pages against races > > when doing the sharing and unsharing, ultimately > > calling huge_pmd_share/unshare() for PMD pages -- > > it also needs it to avoid

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-04 Thread Davidlohr Bueso
On Mon, 2014-11-03 at 22:35 -0800, Hugh Dickins wrote: On Thu, 30 Oct 2014, Davidlohr Bueso wrote: The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-03 Thread Hugh Dickins
On Thu, 30 Oct 2014, Davidlohr Bueso wrote: > The i_mmap_rwsem protects shared pages against races > when doing the sharing and unsharing, ultimately > calling huge_pmd_share/unshare() for PMD pages -- > it also needs it to avoid races when populating the pud > for pmd allocation when looking for

Re: [PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-11-03 Thread Hugh Dickins
On Thu, 30 Oct 2014, Davidlohr Bueso wrote: The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when populating the pud for pmd allocation when looking for a

[PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-10-30 Thread Davidlohr Bueso
The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when populating the pud for pmd allocation when looking for a shareable pmd page for hugetlb. Ultimately the

[PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-10-30 Thread Davidlohr Bueso
The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when populating the pud for pmd allocation when looking for a shareable pmd page for hugetlb. Ultimately the

[PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-10-24 Thread Davidlohr Bueso
From: Davidlohr Bueso The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when populating the pud for pmd allocation when looking for a shareable pmd page for

[PATCH 10/10] mm/hugetlb: share the i_mmap_rwsem

2014-10-24 Thread Davidlohr Bueso
From: Davidlohr Bueso d...@stgolabs.net The i_mmap_rwsem protects shared pages against races when doing the sharing and unsharing, ultimately calling huge_pmd_share/unshare() for PMD pages -- it also needs it to avoid races when populating the pud for pmd allocation when looking for a shareable