Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965344AbWHOKCQ (ORCPT ); Tue, 15 Aug 2006 06:02:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965348AbWHOKCQ (ORCPT ); Tue, 15 Aug 2006 06:02:16 -0400 Received: from filfla-vlan276.msk.corbina.net ([213.234.233.49]:64433 "EHLO screens.ru") by vger.kernel.org with ESMTP id S965344AbWHOKCP (ORCPT ); Tue, 15 Aug 2006 06:02:15 -0400 Date: Tue, 15 Aug 2006 18:26:05 +0400 From: Oleg Nesterov To: Esben Nielsen Cc: Steven Rostedt , Andrew Morton , Ingo Molnar , Thomas Gleixner , Esben Nielsen , LKML Subject: Re: [PATCH] cleanup and remove some extra spinlocks from rtmutex Message-ID: <20060815142605.GA232@oleg> References: <1154439588.25445.31.camel@localhost.localdomain> <20060813190326.GA2276@oleg> <20060815110353.GA111@oleg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 26 On 08/15, Esben Nielsen wrote: > > On Tue, 15 Aug 2006, Oleg Nesterov wrote: > > > >task->pi_blocked_on != NULL, we hold task->pi_blocked_on->lock->wait_lock. > >Can it go away ? > > That is correct. But does it make the code more readable? Well, in my opinion - yes. But yes, it's only my personal feeling :) > When you read > the code you shouldn't need to go into that kind of complicated arguments > to see the correctness - unless the code can't be written otherwise. Sure, this needs a comment. Thanks again, Oleg. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/