Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264506AbTEaXiG (ORCPT ); Sat, 31 May 2003 19:38:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264507AbTEaXiG (ORCPT ); Sat, 31 May 2003 19:38:06 -0400 Received: from e5.ny.us.ibm.com ([32.97.182.105]:50816 "EHLO e5.ny.us.ibm.com") by vger.kernel.org with ESMTP id S264506AbTEaXiF (ORCPT ); Sat, 31 May 2003 19:38:05 -0400 Date: Sat, 31 May 2003 16:51:23 -0700 From: "Paul E. McKenney" To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, hch@infradead.org Subject: Re: [RFC][PATCH] Convert do_no_page() to a hook to avoid DFS race Message-ID: <20030531235123.GC1408@us.ibm.com> Reply-To: paulmck@us.ibm.com References: <20030530164150.A26766@us.ibm.com> <20030530180027.75680efd.akpm@digeo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030530180027.75680efd.akpm@digeo.com> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 30, 2003 at 06:00:27PM -0700, Andrew Morton wrote: > "Paul E. McKenney" wrote: > > There > > is still an inlined do_no_page() wrapper due to the fact that > > do_anonymous_page() requires that the mm->page_table_lock be > > held on entry, while the ->nopage callouts require that this > > lock be dropped. > > I sugest you change the ->nopage definition so that page_table_lock is held > on entry to ->nopage, and ->nopage must drop it at some point. This gives > the nopage implementations some more flexibility and may perhaps eliminate > that special case? Will do! > > This patch is untested. > > I don't think there's a lot of point in making changes until the code which > requires those changes is accepted into the tree. Otherwise it may be > pointless churn, and there's nothing in-tree to exercise the new features. A GPLed use of these DFS features is expected Real Soon Now... Thanx, Paul - 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/