Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 22 Feb 2002 20:33:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 22 Feb 2002 20:33:02 -0500 Received: from dsl-213-023-039-244.arcor-ip.net ([213.23.39.244]:46472 "EHLO starship.berlin") by vger.kernel.org with ESMTP id ; Fri, 22 Feb 2002 20:32:41 -0500 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Linus Torvalds , Rik van Riel Subject: Re: [RFC] Page table sharing Date: Fri, 22 Feb 2002 07:32:31 +0100 X-Mailer: KMail [version 1.3.2] Cc: Hugh Dickins , , Kernel Mailing List , , Robert Love , , Andrew Morton , , In-Reply-To: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org The following gross mistake was noticed promptly by Rik van Riel: spin_lock(&page_table_share_lock); - if (page_count(virt_to_page(pte)) == 1) { + if (put_page_testzero(virt_to_page(pte))) { pmd_clear(dir); pte_free_slow(pte); } spin_unlock(&page_table_share_lock); However, oddly enough, that's not the memory leak. -- Daniel - 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/