From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless Date: Fri, 25 Jul 2008 18:40:21 +1000 Message-ID: <1216975221.11188.102.camel@pasglop> References: <20080724122352.3bc76bda@bull.net> <20080724125044.53b604cb@bull.net> <200807242111.35338.nickpiggin@yahoo.com.au> <20080724141839.477de30b@bull.net> <1216972177.7257.351.camel@twins> <1216974440.11188.100.camel@pasglop> <20080725103601.2dbcd7e8@bull.net> Reply-To: benh@kernel.crashing.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Nick Piggin , Tim Chavez , Linux-rt , Peter Zijlstra , linux-kernel , Jean Pierre Dion , linux-ppc , Paul Mackerras , Gilles Carry To: Sebastien Dugue Return-path: In-Reply-To: <20080725103601.2dbcd7e8@bull.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org List-Id: linux-rt-users.vger.kernel.org On Fri, 2008-07-25 at 10:36 +0200, Sebastien Dugue wrote: > On Fri, 25 Jul 2008 18:27:20 +1000 Benjamin Herrenschmidt wrote: > > > On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote: > > > > > > > > > The only advantage of the concurrent radix tree over this model is that > > > it can potentially do multiple modification operations at the same time. > > > > Yup, we do not need that for the irq revmap... concurrent lookup is all we need. > > > > Shouldn't we care about concurrent insertion and deletion in the tree? I agree > that concern might be a bit artificial but in theory that can happen. Yes, we just need to protect it with a big hammer, like a spinlock, it's not a performance critical code path. Ben.