From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932817AbbCRQUZ (ORCPT ); Wed, 18 Mar 2015 12:20:25 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:36142 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932686AbbCRQUU (ORCPT ); Wed, 18 Mar 2015 12:20:20 -0400 Date: Wed, 18 Mar 2015 17:20:15 +0100 From: Ingo Molnar To: Peter Zijlstra Cc: rusty@rustcorp.com.au, mathieu.desnoyers@efficios.com, oleg@redhat.com, paulmck@linux.vnet.ibm.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, andi@firstfloor.org, rostedt@goodmis.org, tglx@linutronix.de, Michel Lespinasse , Andrea Arcangeli , David Woodhouse , Rik van Riel Subject: Re: [PATCH 6/8] rbtree: Implement generic latch_tree Message-ID: <20150318162014.GA17069@gmail.com> References: <20150318133626.526984618@infradead.org> <20150318134631.939369528@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150318134631.939369528@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra wrote: > Implement a latched RB-tree in order to get unconditional RCU/lockless > lookups. Two very minor nits: > +struct latch_tree_node { > + /* > + * Because we have an array of two entries in struct latch_tree_nodes > + * its not possible to use container_of() to get back to the > + * encapsulating structure; therefore we have to put in a back pointer. > + */ > + void *priv; > + struct rb_node node; > +}; s/its/it's > +/** > + * latch_tree_erase() - removes @nodes from the trees @root > + * @nodes: nodes to remote > + * @root: trees to remove @nodes from > + * @ops: operators defining the node order > + * > + * Removes @nodes from the trees @root in an ordered fashion such that we can > + * always observe one complete tree. See the comment for > + * raw_write_seqcount_latch(). > + * > + * It is assumed that @nodes will observe one RCU quiesent state before being > + * reused of freed. s/quiesent/quiescent Thanks, Ingo