Re: [PATCH 3/4] mm: gup: use get_user_pages_fast and get_user_pages_unlocked

2014-10-12 Thread Andrea Arcangeli
On Thu, Oct 09, 2014 at 12:52:45PM +0200, Peter Zijlstra wrote: > On Wed, Oct 01, 2014 at 10:56:36AM +0200, Andrea Arcangeli wrote: > > Just an optimization. > > Does it make sense to split the thing in two? One where you apply > _unlocked and then one where you apply _fast? Yes but I already dro

Re: [PATCH 3/4] mm: gup: use get_user_pages_fast and get_user_pages_unlocked

2014-10-09 Thread Peter Zijlstra
On Wed, Oct 01, 2014 at 10:56:36AM +0200, Andrea Arcangeli wrote: > Just an optimization. Does it make sense to split the thing in two? One where you apply _unlocked and then one where you apply _fast? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: [PATCH 3/4] mm: gup: use get_user_pages_fast and get_user_pages_unlocked

2014-10-01 Thread Sasha Levin
Hi Andrea, On 10/01/2014 04:56 AM, Andrea Arcangeli wrote: > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index 8f5330d..6606c10 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -881,7 +881,7 @@ static int lookup_node(struct mm_struct *mm, unsigned > long addr) > struct page *p;

Re: [PATCH 3/4] mm: gup: use get_user_pages_fast and get_user_pages_unlocked

2014-10-01 Thread Andrea Arcangeli
On Wed, Oct 01, 2014 at 10:56:36AM +0200, Andrea Arcangeli wrote: > diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c > index f74fc0c..cd20669 100644 > --- a/drivers/misc/sgi-gru/grufault.c > +++ b/drivers/misc/sgi-gru/grufault.c > @@ -198,8 +198,7 @@ static int non_ato

[PATCH 3/4] mm: gup: use get_user_pages_fast and get_user_pages_unlocked

2014-10-01 Thread Andrea Arcangeli
Just an optimization. Signed-off-by: Andrea Arcangeli --- drivers/dma/iovlock.c | 10 ++ drivers/iommu/amd_iommu_v2.c | 6 ++ drivers/media/pci/ivtv/ivtv-udma.c | 6 ++ drivers/misc/sgi-gru/grufault.c| 3 +-- drivers/scsi/st.c | 10 ++---