Re: [PATCH 06/19] mm: numa: teach gup_fast about pmd_numa

From: Mel Gorman
Date: Tue Nov 13 2012 - 06:37:33 EST


On Tue, Nov 13, 2012 at 11:07:36AM +0100, Ingo Molnar wrote:
>
> * Mel Gorman <mgorman@xxxxxxx> wrote:
>
> > From: Andrea Arcangeli <aarcange@xxxxxxxxxx>
> >
> > When scanning pmds, the pmd may be of numa type (_PAGE_PRESENT not set),
> > however the pte might be present. Therefore, gup_pmd_range() must return
> > 0 in this case to avoid losing a NUMA hinting page fault during gup_fast.
> >
> > Note: gup_fast will skip over non present ptes (like numa
> > types), so no explicit check is needed for the pte_numa case.
> > [...]
>
> So, why not fix all architectures that choose to expose
> pte_numa() and pmd_numa() methods - via the patch below?
>

I'll pick it up. Thanks.

--
Mel Gorman
SUSE Labs
--
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/