From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932793AbYDBWF5 (ORCPT ); Wed, 2 Apr 2008 18:05:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753416AbYDBWFr (ORCPT ); Wed, 2 Apr 2008 18:05:47 -0400 Received: from relay1.sgi.com ([192.48.171.29]:44046 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753228AbYDBWFq (ORCPT ); Wed, 2 Apr 2008 18:05:46 -0400 Date: Wed, 2 Apr 2008 15:03:12 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Andrea Arcangeli cc: akpm@linux-foundation.org, Jack Steiner , Nick Piggin , Robin Holt , Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , general@lists.openfabrics.org, Steve Wise , Roland Dreier , Kanoj Sarcar , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 2 of 8] Moves all mmu notifier methods outside the PT lock (first and not last In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Apr 2008, Andrea Arcangeli wrote: > diff --git a/mm/memory.c b/mm/memory.c > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -1626,9 +1626,10 @@ > */ > page_table = pte_offset_map_lock(mm, pmd, address, > &ptl); > - page_cache_release(old_page); > + new_page = NULL; > if (!pte_same(*page_table, orig_pte)) > goto unlock; > + page_cache_release(old_page); > > page_mkwrite = 1; > } This is deferring frees and not moving the callouts. KVM specific? What exactly is this doing? A significant portion of this seems to be undoing what the first patch did.