From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268677AbUIBQZc (ORCPT ); Thu, 2 Sep 2004 12:25:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268675AbUIBQZc (ORCPT ); Thu, 2 Sep 2004 12:25:32 -0400 Received: from omx2-ext.sgi.com ([192.48.171.19]:22230 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S268580AbUIBQZJ (ORCPT ); Thu, 2 Sep 2004 12:25:09 -0400 Date: Thu, 2 Sep 2004 09:24:47 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: "David S. Miller" cc: benh@kernel.crashing.org, akpm@osdl.org, wli@holomorphy.com, davem@redhat.com, raybry@sgi.com, ak@muc.de, manfred@colorfullife.com, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, vrajesh@umich.edu, hugh@veritas.com Subject: Re: page fault scalability patch final : i386 tested, x86_64 support added In-Reply-To: <20040901215741.3538bbf4.davem@davemloft.net> Message-ID: References: <20040815130919.44769735.davem@redhat.com> <20040815165827.0c0c8844.davem@redhat.com> <20040815185644.24ecb247.davem@redhat.com> <20040816143903.GY11200@holomorphy.com> <1094012689.6538.330.camel@gaston> <1094080164.4025.17.camel@gaston> <20040901215741.3538bbf4.davem@davemloft.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Why was it done that way? Would it not be better to add the new functionality by giving the function another name? Like f.e. set_pte_mm() then one could add the following in asm-generic/pgtable.h #ifndef __HAVE_ARCH_SET_PTE_MM #define set_pte_mm(mm, address, ptep, pte) set_pte(ptep, pte) #endif which would avoid having to update the other platforms and woud allow a gradual transition. My patch does something like that in order to avoid having to update all arches. Arches without __HAVE_ARCH_ATOMIC_TABLE_OPS will have their atomicity simulated via the page_table_lock. On Wed, 1 Sep 2004, David S. Miller wrote: > On Wed, 1 Sep 2004 21:45:20 -0700 (PDT) > Christoph Lameter wrote: > > > BTW. We should get David's patch in first thing before tackling with > > > this complicated issue (the one adding mm & addr to set_pte & friends). > > > > Where would I find that patch? > Attached. > It's held up because it needs to be ported to all platforms > before we can consider it seriously for inclusion and > only sparc64 and ppc{,64} are converted. > >