Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965351AbWHOKF2 (ORCPT ); Tue, 15 Aug 2006 06:05:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965354AbWHOKF2 (ORCPT ); Tue, 15 Aug 2006 06:05:28 -0400 Received: from mx03.stofanet.dk ([212.10.10.13]:3207 "EHLO mx03.stofanet.dk") by vger.kernel.org with ESMTP id S965351AbWHOKF1 (ORCPT ); Tue, 15 Aug 2006 06:05:27 -0400 Date: Tue, 15 Aug 2006 12:05:09 +0200 (CEST) From: Esben Nielsen X-X-Sender: simlo@frodo.shire To: Oleg Nesterov cc: Esben Nielsen , Steven Rostedt , Andrew Morton , Ingo Molnar , Thomas Gleixner , Esben Nielsen , LKML Subject: Re: [PATCH] cleanup and remove some extra spinlocks from rtmutex In-Reply-To: <20060815142605.GA232@oleg> Message-ID: References: <1154439588.25445.31.camel@localhost.localdomain> <20060813190326.GA2276@oleg> <20060815110353.GA111@oleg> <20060815142605.GA232@oleg> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 36 On Tue, 15 Aug 2006, Oleg Nesterov wrote: > 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. It is even better if you can read the code without a comment. Good code doesn't need comments. Esben > > 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/