From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753873Ab0AEI3W (ORCPT ); Tue, 5 Jan 2010 03:29:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751612Ab0AEI3V (ORCPT ); Tue, 5 Jan 2010 03:29:21 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:42535 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996Ab0AEI3U (ORCPT ); Tue, 5 Jan 2010 03:29:20 -0500 Subject: Re: [RFC][PATCH 4/8] mm: RCU free vmas From: Peter Zijlstra To: paulmck@linux.vnet.ibm.com Cc: KAMEZAWA Hiroyuki , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "minchan.kim@gmail.com" , cl@linux-foundation.org, "hugh.dickins" , Nick Piggin , Ingo Molnar , Linus Torvalds In-Reply-To: <20100105024336.GQ6748@linux.vnet.ibm.com> References: <20100104182429.833180340@chello.nl> <20100104182813.479668508@chello.nl> <20100105024336.GQ6748@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 05 Jan 2010 09:28:36 +0100 Message-ID: <1262680116.2400.19.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2010-01-04 at 18:43 -0800, Paul E. McKenney wrote: > On Mon, Jan 04, 2010 at 07:24:33PM +0100, Peter Zijlstra wrote: > > TODO: > > - should be SRCU, lack of call_srcu() > > > > In order to allow speculative vma lookups, RCU free the struct > > vm_area_struct. > > > > We use two means of detecting a vma is still valid: > > - firstly, we set RB_CLEAR_NODE once we remove a vma from the tree. > > - secondly, we check the vma sequence number. > > > > These two things combined will guarantee that 1) the vma is still > > present and two, it still covers the same range from when we looked it > > up. > > OK, I think I see what you are up to here. I could get you a very crude > throw-away call_srcu() fairly quickly. I don't yet have a good estimate > of how long it will take me to merge SRCU into the treercu infrastructure, > but am getting there. > > So, which release are you thinking in terms of? I'm not thinking any release yet, its very early and as Linus has pointed out, I seem to have forgotten a rather big piece of the picture :/ So I need to try and fix this glaring hole before we can continue.