From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761319AbYDOQPu (ORCPT ); Tue, 15 Apr 2008 12:15:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753196AbYDOQPl (ORCPT ); Tue, 15 Apr 2008 12:15:41 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:50637 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbYDOQPk (ORCPT ); Tue, 15 Apr 2008 12:15:40 -0400 Date: Tue, 15 Apr 2008 09:09:23 -0700 (PDT) From: Linus Torvalds To: Peter Zijlstra cc: Bart Van Assche , Andi Kleen , Roland Dreier , Ingo Molnar , Matthew Wilcox , Ingo Oeser , Daniel Walker , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Replace completions with semaphores In-Reply-To: <1208249088.7124.7.camel@twins> Message-ID: References: <20080411210022.GJ11962@parisc-linux.org> <20080413125758.GQ11962@parisc-linux.org> <20080414153928.GA22259@elte.hu> <1208190749.7375.10.camel@twins> <87d4osuy6r.fsf@basil.nowhere.org> <1208195673.7164.2.camel@twins> <4803AD91.5020001@firstfloor.org> <1208242017.7053.4.camel@lappy> <1208249088.7124.7.camel@twins> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Apr 2008, Peter Zijlstra wrote: > > That sounds horrible; I really prefer targeted replacements like > completions that make it clear what they're supposed to be used for. I agree. I'd rather _keep_ the completions, and get rid of the semaphores, so I think the whole fundamental patch here under discussion is broken. We should do: - continue replacing semaphores that are used purely for mutual exclusion with mutexes. - probably add support for completions to do counting - and then eventually just do the _reverse_ of what the current patch does, namely replace the existing counting semaphore usage with completions. Hmm? Linus