From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754248AbYDQWRO (ORCPT ); Thu, 17 Apr 2008 18:17:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754212AbYDQWQ6 (ORCPT ); Thu, 17 Apr 2008 18:16:58 -0400 Received: from host36-195-149-62.serverdedicati.aruba.it ([62.149.195.36]:60296 "EHLO mx.cpushare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754171AbYDQWQ5 (ORCPT ); Thu, 17 Apr 2008 18:16:57 -0400 Date: Fri, 18 Apr 2008 00:16:55 +0200 From: Andrea Arcangeli To: Christoph Lameter Cc: Robin Holt , akpm@linux-foundation.org, Nick Piggin , Steve Wise , Peter Zijlstra , linux-mm@kvack.org, Kanoj Sarcar , Roland Dreier , Jack Steiner , linux-kernel@vger.kernel.org, Avi Kivity , kvm-devel@lists.sourceforge.net, general@lists.openfabrics.org, Hugh Dickins Subject: Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen Message-ID: <20080417221655.GA9287@duo.random> References: <20080416163337.GJ22493@sgi.com> <20080417155157.GC17187@duo.random> <20080417163642.GE11364@sgi.com> <20080417171443.GM17187@duo.random> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 17, 2008 at 12:10:52PM -0700, Christoph Lameter wrote: > EMM was/is using a single linked list which allows atomic updates. Looked > cleaner to me since doubly linked list must update two pointers. Cleaner would be if it would provide an abstraction in list.h. The important is the memory taken by the head for this usage. > I have not seen docs on the locking so not sure why you use rcu > operations here? Isnt the requirement to have either rmap locks or > mmap_sem held enough to guarantee the consistency of the doubly linked list? Yes, exactly, I'm not using rcu anymore.