From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754701Ab0FCHNi (ORCPT ); Thu, 3 Jun 2010 03:13:38 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:48063 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751792Ab0FCHNg convert rfc822-to-8bit (ORCPT ); Thu, 3 Jun 2010 03:13:36 -0400 Subject: Re: [PATCH] rbtree: undo augmented damage -v2 From: Peter Zijlstra To: Suresh Siddha Cc: Venkatesh Pallipadi , "mingo@redhat.com" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "linux-tip-commits@vger.kernel.org" , Fabio Checconi In-Reply-To: <1275513074.2913.258.camel@sbs-t61.sc.intel.com> References: <20100210232343.GA11465@linux-os.sc.intel.com> <1275136178.27810.13539.camel@twins> <1275139902.27810.13737.camel@twins> <1275412748.27810.27883.camel@twins> <1275414172.27810.27961.camel@twins> <1275417720.27810.28160.camel@twins> <1275513074.2913.258.camel@sbs-t61.sc.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 03 Jun 2010 09:13:46 +0200 Message-ID: <1275549226.27810.34762.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2010-06-02 at 14:11 -0700, Suresh Siddha wrote: > P SL > / \ / \ > N S ---> N S > / / \ / \ > C SL SR C SR > > If P needs to be removed, we need to re-augment S also in this case, > right? It looks like we are not handling this case. rb_augment_erase_begin(P) will return S if I read the code right, so rb_augment_path(S) will the re-augment S, SL, N.