From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754478Ab2KMNvO (ORCPT ); Tue, 13 Nov 2012 08:51:14 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:49485 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751614Ab2KMNvN (ORCPT ); Tue, 13 Nov 2012 08:51:13 -0500 Date: Tue, 13 Nov 2012 14:51:08 +0100 From: Ingo Molnar To: Mel Gorman Cc: Peter Zijlstra , Andrea Arcangeli , Rik van Riel , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Linus Torvalds , Andrew Morton , Linux-MM , LKML Subject: Re: [PATCH 06/19] mm: numa: teach gup_fast about pmd_numa Message-ID: <20121113135107.GC17782@gmail.com> References: <1352193295-26815-1-git-send-email-mgorman@suse.de> <1352193295-26815-7-git-send-email-mgorman@suse.de> <20121113100735.GC21522@gmail.com> <20121113113739.GX8218@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121113113739.GX8218@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mel Gorman wrote: > On Tue, Nov 13, 2012 at 11:07:36AM +0100, Ingo Molnar wrote: > > > > * Mel Gorman wrote: > > > > > From: Andrea Arcangeli > > > > > > 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. FYI, before you do too much restructuring work, that patch is already part of tip:numa/core, I'll push out our updated version of the tree later today. Thanks, Ingo