Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754483Ab2KMNtR (ORCPT ); Tue, 13 Nov 2012 08:49:17 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:65367 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751851Ab2KMNtP (ORCPT ); Tue, 13 Nov 2012 08:49:15 -0500 Date: Tue, 13 Nov 2012 14:49:10 +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 08/19] mm: numa: Create basic numa page hinting infrastructure Message-ID: <20121113134910.GB17782@gmail.com> References: <1352193295-26815-1-git-send-email-mgorman@suse.de> <1352193295-26815-9-git-send-email-mgorman@suse.de> <20121113102120.GD21522@gmail.com> <20121113115032.GY8218@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121113115032.GY8218@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 Content-Length: 1231 Lines: 35 * Mel Gorman wrote: > > But given that most architectures will be just fine reusing > > the already existing generic PROT_NONE machinery, the far > > better approach is to do what we've been doing in generic > > kernel code for the last 10 years: offer a default generic > > version, and then to offer per arch hooks on a strict > > as-needed basis, if they want or need to do something weird > > ... > > If they are *not* fine with it, it's a large retrofit because > the PROT_NONE machinery has been hard-coded throughout. [...] That was a valid criticism for earlier versions of the NUMA patches - but should much less be the case in the latest iterations of the patches: - it has generic pte_numa() / pmd_numa() instead of using prot_none() directly - the key utility functions are named using the _numa pattern, not *_prot_none*() anymore. Let us know if you can still see such instances - it's probably simple oversight. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/