From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3EFE0DE025 for ; Fri, 25 Jul 2008 18:41:10 +1000 (EST) Subject: Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless From: Benjamin Herrenschmidt To: Sebastien Dugue In-Reply-To: <20080725103601.2dbcd7e8@bull.net> 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> Content-Type: text/plain Date: Fri, 25 Jul 2008 18:40:21 +1000 Message-Id: <1216975221.11188.102.camel@pasglop> Mime-Version: 1.0 Cc: Nick Piggin , Tim Chavez , Linux-rt , Peter Zijlstra , linux-kernel , Jean Pierre Dion , linux-ppc , Paul Mackerras , Gilles Carry Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.